Connexion rapide:  

Forum: VirtualDJ Technical Support

Sujet naming order broken
file system naming order:
1, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 2, 21......
i cannot believe a $200 program does not use numbers to order file names. just sad
 

Posté Wed 26 Oct 22 @ 11:08 pm
locoDogPRO InfinityModeratorMember since 2013
nickgarver wrote :
file system naming order:
1, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 2, 21......


that's alphanumerical order, [well 2 after 20 is a typo I suspect]

we humans parse a leading zero but vdj sorting of artist/title/filename has to deal with every possible case, it can't guess a leading zero, because natural sorting [after 1 comes 2 not 10] leads to unresolvable issues in edge cases.

artist/title/filename uses strict alphanumerical order,

track number field however does imply a leading zero.

so use track number field or add leading zeros to the tags.

I can't find the post but phantomdj explained it better than me.
 

Posté Thu 27 Oct 22 @ 2:09 am
locoDogPRO InfinityModeratorMember since 2013
Ah I found it

PhantomDeejay wrote :
Just FYI, Windows are using what's called "natural" sorting, while most apps (including VirtualDJ) are using what's called "strict" sorting

To give you an example,
Windows will sort like this:
1
02
3
4
05
10

However most programs will sort like this:
02
05
1
10
3
4

The first approach feels more natural to humans but technically speaking is not correct
The second approach is technically correct (even by grammar/syntax terms) but doesn't feel natural because your mind interpets the "text" as numbers and wants to sort them by a "smaller to bigger number" rule.
 

Posté Thu 27 Oct 22 @ 2:30 am