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

Browser - Sort Order #5772

Open
sound8 opened this issue Nov 7, 2020 · 8 comments · May be fixed by #7333
Open

Browser - Sort Order #5772

sound8 opened this issue Nov 7, 2020 · 8 comments · May be fixed by #7333

Comments

@sound8
Copy link

sound8 commented Nov 7, 2020

From what I understand each OS has its own standards of how file lists naturally sort from top to bottom.
All (well I hope) file sorting approaches use A-Z but then other sorting approaches vary.
I am on a Windows machine so I have followed their methods of sorting files, and I have noticed a couple of conflicts between the Windows OS sorting approach and the LMMS Browser sorting approach.
Two main things I have noticed are....

1.) Character Prefixes That Make Files Appear At Top of List
Windows OS
characters such as "" (as well as others) make files appear at top
LMMS Browser
takes "
" items and puts them at the bottom

2.) Numbering Issues
Windows OS
uses the suffix " (#)" to number its files and sorts by natural counting
LMMS Browser
views this numbering system differently putting all the 1's togther for example

EXAMPLE:
Windows

snare (1)
snare (2)
....
snare (9)
snare (10)
snare (11)

LMMS Browser

snare (1)
snare (10)
snare (11)
snare (2)
snare (3)
etc.

LMMS Browser confuses down for up, it can't count, what the hell kind of educational system was he exposed to as kid? :)

If others agree would it possible to set the LMMS Browsers coding to use the sorting methods employed by each specific OS it is being installed and used with? Or simply adding a setting to be able to "Use Windows File Sorting Methods"?

Hopefully something like this can be fixed soon, but.... probably not I would imagine.
It is just that all my files are setup this way so can get confusing at times, losing track of things.
Not sure if anyone else has run into any problems with this and would like a solution as well?

@tresf
Copy link
Member

tresf commented Nov 11, 2020

1, 10, 11, 2 is a natural alphanumeric sorting system. Windows XP introduced a feature where File Explorer was capable of using numerical sorting instead. LMMS can leverage this too through Qt, with some modifications.

See also: https://stackoverflow.com/q/11933883/3196753

Note, LMMS is a volunteer led project, many features are implemented by the requestors. If you're interested in getting involved with the source code, let us know over on Discord at https://lmms.io/chat.

@abhishektiwari47
Copy link

hey i want to solve this problem.

@zonkmachine
Copy link
Member

hey i want to solve this problem.

Have a go! :)

@Monospace-V
Copy link
Contributor

Adding to this, LMMS has A->Z then a->z. It would make more sense to have the two together, because people don't usually expect B and b in different places.

@AbhiramL
Copy link

Can I help?

@Coderayush13
Copy link

Hey i want work on these issue

@allejok96
Copy link
Contributor

@Coderayush13 if you want to help with this particular issue you could start by checking out #6339. It's been a while so there are probably lots of merge conflicts by now, but feedback is always appreciated.

@Rossmaxx
Copy link
Contributor

#7333 fixes this.

@Rossmaxx Rossmaxx linked a pull request Jun 20, 2024 that will close this issue
@Rossmaxx Rossmaxx linked a pull request Jun 20, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants