Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sort tracks alphabetically when dropping folders #537

Open
ciros88 opened this issue Jul 6, 2024 · 2 comments
Open

sort tracks alphabetically when dropping folders #537

ciros88 opened this issue Jul 6, 2024 · 2 comments
Labels
enhancement New feature or request GUI

Comments

@ciros88
Copy link
Collaborator

ciros88 commented Jul 6, 2024

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:

  • current behaviour:
    image

  • desidered behaviour:
    image

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

@ciros88 ciros88 added enhancement New feature or request GUI labels Jul 6, 2024
@ciros88 ciros88 changed the title change natural to alphabetical sorting when dropping folders sort tracks alphabetically when dropping folders Jul 6, 2024
@aargirakis
Copy link
Owner

aargirakis commented Jul 9, 2024

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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request GUI
Projects
None yet
Development

No branches or pull requests

2 participants