Post Reply 
Numerical sorting
15-05-2013, 12:00 (This post was last modified: 15-05-2013 12:00 by simoncn.)
Post: #5
RE: Numerical sorting
(15-05-2013 10:18)audio_elf Wrote:  It's actually for a long series of Audiobooks/Audio dramas.

I have them named (Album title)
1: title 1
2: title 2
...
10: title 10
11: title 11
...
19: title 19
20: title 20
21: title 21
...
99: title 99
100: title 100
101: title 101
etc...

On the control point (both SongBook and Linn Kinsky) I get them ordered
100, 101, 10, 11, 12, 13 .. 19, 1, 20, 21, 22, 23 .. 29, 2
The logical order would be 1, 2, 3, 4, 5, etc. but I understand that its just using basic ASCII sorting (if thats the correct term) looking at first character, second character, etc.

Thanks for the detailed explanation. For custom sorting of album titles, you can use the Album.sortTags setting in the tagOptions property. You would need to do the following:

1) Choose a tag name for specifying the sort order of these albums. This could be ALBUMSORT or it could be a custom name of your choosing.

2) Add your chosen tag to the Album.sortTags setting. For example, you could specify Album.sortTags={AlbumSort, Album, Artist}.

3) Add your chosen tag to all the albums that need a custom sort order. This tag would need to contain padded ASCII strings for the numbers.

4) Add your chosen tag to the itemTags property, so that MinimServer will read this tag from your files.

5) Restart MinimServer, and you'll see what you want:
1: title 1
2: title 2
...
10: title 10
11: title 11
....etc.

Quote:I'm just curious if this is something that will likely change in the future; if not then no real problem it's easy enough to get mp3tag to pad to titles - hey even some operating systems sort this way in their file managers. Or is this down to Kinsky and SongBook and nothing to do with Minimserver?

MinimServer controls the order in which list items are sent to the control point. The control point may use this list order "as is" or it may impose its own sort order on the list.

For example, Songbook Lite allows you to specify the following sort order options:
--- Use the list order from the server
123 Sort the items numerically by track number
abc Sort the items alphabetically by title

When using Songbook Lite with MinimServer, a sort order of --- is recommended.

Quote:It also shows in this "wrong" order where I have a multi-disc audio book (over 10 discs) in SongBook where the Album title is appended with [Disc n].

Eloise

You can fix this by adding DISCNUMBER tags to the album discs. If you have [Disc n] suffixes and DISCNUMBER tags, MinimServer groups the discs together under a single album heading in the correct numerical order.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Numerical sorting - audio_elf - 14-05-2013, 14:05
RE: Numerical sorting - simoncn - 14-05-2013, 21:30
RE: Numerical sorting - audio_elf - 15-05-2013, 10:18
RE: Numerical sorting - simoncn - 15-05-2013 12:00
RE: Numerical sorting - audio_elf - 16-05-2013, 12:01
RE: Numerical sorting - simoncn - 16-05-2013, 14:34
RE: Numerical sorting - audio_elf - 21-05-2013, 22:46
RE: Numerical sorting - simoncn - 22-05-2013, 10:22
RE: Numerical sorting - bbrip - 15-05-2013, 08:18

Forum Jump:


User(s) browsing this thread: 2 Guest(s)