The value of <B>SortFieldsB> may contain the names of any of the fields
in the listing, such as Title, or Album Duration. By
default, the sort direction will be alphabetically or numerically
ascending. Reverse this by placing a - in front of the field name
(for symmetry, you can also prepend a + to signify normal ascending
order). After the initial sort, the user can change the sort order by
clicking on the column headings of the file listing table.
When constructing a playlist from a recursive directory listing, sorting will be <B>globalB> across all directories. If no sort order is specified, then the module reverts to sorting by file and directory name. A good value for SortFields is to sort by Artist,Album and track:
Alternatively, you might want to sort by Description, which effectively sorts by title, artist and album.
The following are valid fields:
Field names are case insensitive.
Apache::MP3::Sorted overrides the following methods:
sort_mp3s() mp3_table_header() mp3_list_bottom()
It adds one new method:
$field = $mp3->sort_fields Returns a list of the names of the fields to sort on by default.
Let me know.
Copyright 2000, Lincoln Stein <email@example.com>.
This module is distributed under the same terms as Perl itself. Feel free to use, modify and redistribute it as long as you retain the correct attribution.
Tim Ayers <firstname.lastname@example.org> conceived and implemented the multiple field sorting system.
Apache::MP3, MP3::Info, Apache
|perl v5.20.3||MP3::SORTED (3)||2006-01-03|