aargirakis / BZRPlayer

Audio player for Windows that plays over 650 different fileformats
http://bzrplayer.blazer.nu/
GNU General Public License v3.0
10 stars 0 forks source link

sort tracks alphabetically when dropping folders #537

Open ciros88 opened 3 months ago

ciros88 commented 3 months ago

when dropping tracks to tracklist/playlists windows, no sorting happens (the order comes from the source); when droppings folders to tracklist/playlists windows instead, the tracklist entries seems non-alphabetically sorted (maybe natural sort it is used): alphabetical sorting should be most appropriate. here an example of a dropped folder:

example files (put all of them in the same folder): sorting 1.zip sorting 2.zip

aargirakis commented 2 months ago

It's based on how the filesystem sort the files. It's like "get all the files from the current folder". So if we want another sorting we have to sort it ourself. Which will add some sort delay.

aargirakis commented 2 months ago

Actually you there is an option from Qt to sort the files: https://doc.qt.io/qt-6/qdir.html#SortFlag-enum Tried some and natural sorting doesn't seem supported though.