Jump to content

Bug in sort by filename


Pedro Garcia

Recommended Posts

name my music files numerically so they are displayed in a specific order, and in Powermaq the list option is in "file name", name the files as follows
01 track name.flac
02 track name.flac
........
When you reach 10, 11 does not follow, but 100 and then 101, in my file manager it follows the desired sequence in Poweramp, no

Screenshot_2023-09-20-01-15-15-912_com.mi.android.globalFileexplorer.jpg

Screenshot_2023-09-20-01-15-41-059_com.maxmpz.audioplayer.jpg

Screenshot_2023-09-20-01-15-53-096_com.maxmpz.audioplayer.jpg

Screenshot_2023-09-20-01-15-58-185_com.maxmpz.audioplayer.jpg

Screenshot_2023-09-20-01-16-06-287_com.maxmpz.audioplayer.jpg

Link to comment
Share on other sites

I found a provisional solution 

It seems that if you have libraries <=999 songs, you need to name the files this way 

001 , So that when it reaches 100 don't do a reboot

._. 

If you name 1, 2, 3..... When you reach 10 the sequence does not follow

1000 songs, you must name the first one like 0001 to avoid problems when going from 99 to 100 

 

Screenshot_2023-09-20-01-54-39-357_com.maxmpz.audioplayer.jpg

Screenshot_2023-09-20-01-56-20-206_com.maxmpz.audioplayer.jpg

Edited by Pedro Garcia
Link to comment
Share on other sites

That is correct, filename sorting is processed strictly as alphanumeric strings, sorted character by character. So in the same was that AAA comes before BB, 111 comes before 22.

The fix is to use as many leading zero digits are you need to make the numbers the same length. In most cases for track numbering, just one zero is sufficient (forcing "01" to come before "20") which is what most ripping/renaming software does when naming files, but if you have a lot of tracks you may need to use "001", "002", 021", "022", "121", etc. 

There is a Feature Request to optionally provide "smart" sorting for alphanumeric strings, but that has not been implemented as yet.  

Andre

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...