hi there!
i want to sort the attached files (upload.module) by name or description. i tried the wonderfull modification here at ... but for me its not working for some reasons.
i was thinking of modifiing the function swftools_wijering_mediaplayer_playlist() (wijering.module, line 277), where the array/object $xml_data is passed. possibly it should be better to do the sorting in $xml_data itself, but i did not find where it is declared or "made".
the structure of $xml_data is
Array
(
[header] => Array
(
[title] => Playlist-Titel
)
[playlist] => Array
(
[28] => Array
(
[fid] => 28
[nid] => 5
[filename] => 03 - Songtitel3
[filepath] => /files/5/03 - Songtitel3.mp3
[filemime] => application/octetstream
[filesize] => 4787733
[vid] => 5
[description] => 03 - Songtitel3
[list] => 1
[fileurl] => http://localhost/sitename//files/5/03 - Songtitel3.mp3
[title] => 03 - Songtitel3
)
[29] => Array
(
[fid] => 29
[nid] => 5
[filename] => 01 - Songtitel1
[filepath] => /files/5/01 - Songtitel1.mp3
[filemime] => application/octetstream
[filesize] => 7331840
[vid] => 5
[description] => 01 - Songtitel1
[list] => 1
[fileurl] => http://localhost/sitename//files/5/01 - Songtitel1.mp3
[title] => 01 - Songtitel1
)
)
)
my question is how to sort the elements of [playlist] for its property [description]. it should be done by "array_multisort" but i don't know how to handel...
or: can anybody tell me how to use interface_sortable.module for sorting attachments... ?
:-)
thanx!
Comments
i missed the link above ("i
i missed the link above ("i tried the wonderfull modification here at ... "). its:
http://drupal.org/node/185458