Rockbox

Tasklist

FS#11695 - Tracks are not ordered properly (concerning place value)

Attached to Project: Rockbox
Opened by Jesse Noordegraaf (jessmanboo22) - Friday, 22 October 2010, 04:14 GMT
Last edited by sideral (sideral) - Saturday, 18 June 2011, 18:42 GMT
Task Type Bugs
Category Database
Status Closed
Assigned To No-one
Operating System All players
Severity Low
Priority Normal
Reported Version Daily build (which?)
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

The place value is not taken into account properly when listing songs in order by their track number in the database browser. The playlist browser, however, is normal, so playback is unaffected. It just makes for a slightly more awkward browsing experience in the database if you're looking for a certain track number.

Example tracks 1, 2, 3, 10, 11, 12, 100, 120, 168.
I'm seeing them ordered like this:
1
10
100
11
12
120
168
2
3

They're supposed to be ordered like this:
1
2
3
10
11
12
100
120
168

I'm using r28323-101021.
This task depends upon

Closed by  sideral (sideral)
Saturday, 18 June 2011, 18:42 GMT
Reason for closing:  Invalid
Additional comments about closing:  No clarification in past 4 weeks
Comment by Hilton Shumway (HIllshum) - Friday, 22 October 2010, 22:09 GMT
I remember a huge debate over something like this a while ago.

In the case of track listing, I think you are right. This is a bug.
Comment by Hayden Pearce (St.) - Saturday, 23 October 2010, 01:12 GMT
My tracks *are* ordered in a "natural" sort order...
Comment by sideral (sideral) - Thursday, 19 May 2011, 17:22 GMT
I'm assuming these numbers are track numbers, not track titles? (Because in the latter case, the ordering would be correct if no track number was present.)

The default tagnavi format does not support three-digit track numbers. This probably should be fixed. Does the following FAQ answer help?
http://www.rockbox.org/wiki/DataBase#FAQ

Comment by sideral (sideral) - Friday, 20 May 2011, 13:03 GMT
On further reflection, there's one thing I don't understand in the original problem description: The default format always prints a leading zero for single-digit track numbers, allowing track numbers with up to two digits to be sorted correctly. But you show single-digit track numbers without leading zeros in your example. Are you perhaps using a custom %format directive already?

Loading...