Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Numerical sorting
14-05-2013, 14:05 (This post was last modified: 14-05-2013 14:05 by audio_elf.)
Post: #1
Numerical sorting
Hi

Is it on your roadmap to enable logical sorting for numberical value?

What I mean is: at the moment if you have a 1 ... 2 ... 3 ... 4 ... 5 list up to 100 the server sorts the list 1 ... 10 ... 100 ... 11 ... 12 ... 13 ... 14 ... 15 ... 16 ... 17 ... 18 ... 19 ... 2 ... 20 ... 21 ... etc.

Just curious if this is on your roadmap or if I should just renumber with 2/3 digit numbers as relevant.

Eloise
Find all posts by this user
Quote this message in a reply
14-05-2013, 21:30 (This post was last modified: 14-05-2013 21:43 by simoncn.)
Post: #2
RE: Numerical sorting
(14-05-2013 14:05)audio_elf Wrote:  Hi

Is it on your roadmap to enable logical sorting for numberical value?

What I mean is: at the moment if you have a 1 ... 2 ... 3 ... 4 ... 5 list up to 100 the server sorts the list 1 ... 10 ... 100 ... 11 ... 12 ... 13 ... 14 ... 15 ... 16 ... 17 ... 18 ... 19 ... 2 ... 20 ... 21 ... etc.

Just curious if this is on your roadmap or if I should just renumber with 2/3 digit numbers as relevant.

Eloise

What kind of list is being sorted? Tracks in albums are sorted by track number, so this should give you what you want. In the "n items" view, there is currently no alternative to alphabetical sorting. If you could provide more context about the list that is being sorted, I might be able to suggest a way of doing what you want.
Find all posts by this user
Quote this message in a reply
15-05-2013, 08:18
Post: #3
RE: Numerical sorting
(14-05-2013 14:05)audio_elf Wrote:  Hi

Is it on your roadmap to enable logical sorting for numberical value?

What I mean is: at the moment if you have a 1 ... 2 ... 3 ... 4 ... 5 list up to 100 the server sorts the list 1 ... 10 ... 100 ... 11 ... 12 ... 13 ... 14 ... 15 ... 16 ... 17 ... 18 ... 19 ... 2 ... 20 ... 21 ... etc.

Just curious if this is on your roadmap or if I should just renumber with 2/3 digit numbers as relevant.

Eloise

Tracks are sorting fine here. Maybe it is your control point overwriting the sort order?
Find all posts by this user
Quote this message in a reply
15-05-2013, 10:18
Post: #4
RE: Numerical sorting
(14-05-2013 21:30)simoncn Wrote:  What kind of list is being sorted? Tracks in albums are sorted by track number, so this should give you what you want. In the "n items" view, there is currently no alternative to alphabetical sorting. If you could provide more context about the list that is being sorted, I might be able to suggest a way of doing what you want.
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.

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?

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
Find all posts by this user
Quote this message in a reply
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
16-05-2013, 12:01
Post: #6
RE: Numerical sorting
Thanks
Find all posts by this user
Quote this message in a reply
16-05-2013, 14:34
Post: #7
RE: Numerical sorting
(15-05-2013 12:00)simoncn Wrote:  
(15-05-2013 10:18)audio_elf Wrote:  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.

Actually, this grouping/merging is working for me with [Disc n] suffixes and no DISCNUMBER tags. Apologies for the confusion. If these discs aren't being merged into a single album for you, there must be some other reason.

What Artist and AlbumArtist tags do you have for the discs? If the different discs have different Artist tags, this would prevent the discs from being merged into a single album. To solve this, you can add a consistent AlbumArtist tag to all the discs.
Find all posts by this user
Quote this message in a reply
21-05-2013, 22:46
Post: #8
RE: Numerical sorting
Thanks. Not sure what I was doing but the Disc n works now and sorts properly for me.

Thanks for the great server and the support.

Eloise
Find all posts by this user
Quote this message in a reply
22-05-2013, 10:22
Post: #9
RE: Numerical sorting
(21-05-2013 22:46)audio_elf Wrote:  Thanks. Not sure what I was doing but the Disc n works now and sorts properly for me.

Thanks for the great server and the support.

Eloise

Thanks very much! I'm glad to hear it's working now.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


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