Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: sort by track length bug (Read 3020 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

sort by track length bug

im using .9b11 at the moment and when i sort my playlist by song length it gets the double digit song lengths mixed up.

for example

1:58
1:59
10:54
14:33
19:21 ...
... 2:59
21:23
24:31
3:11 etc.

so when a song goes into its teens it will be sorted after 1min 59sec and if its in the twentys it will be sorted after 2min 59sec, etc.

Probably not an important one as not many people sort out their songs by length but just though i tell you, unless its already been reported.


sort by track length bug

Reply #2
Binary can be an arse at times, eh?  See, in binary 10 comes before 2. In older versions of Windows, that'd happen when sorting.

eg: Document10 would come before Document2.

Try padding the length with zeros:
Code: [Select]
$num(%length%,6)
</signature>

sort by track length bug

Reply #3
Quote
Binary can be an arse at times, eh?  See, in binary 10 comes before 2. In older versions of Windows, that'd happen when sorting.[{POST_SNAPBACK}][/a]

What does this have to do with "binary"? This is an issue of [a href="http://en.wikipedia.org/wiki/Lexicographical_order]lexicographical order[/url] versus "natural" order.

sort by track length bug

Reply #4
You want to sort by length_seconds

 

sort by track length bug

Reply #5
Quote
in binary 10 comes before 2.


there isn't the token '2' in binary. If you intended the 2 to be taken as '10' in binary, well, it makes even less sense. 10 comes before 10?