LMMS / lmms

Cross-platform music production software
https://lmms.io
GNU General Public License v2.0
7.96k stars 993 forks source link

Browser - Sort Order #5772

Open sound8 opened 3 years ago

sound8 commented 3 years ago

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 commented 3 years ago

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 commented 2 years ago

hey i want to solve this problem.

zonkmachine commented 2 years ago

hey i want to solve this problem.

Have a go! :)

Monospace-V commented 2 years ago

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 commented 2 years ago

Can I help?

Coderayush13 commented 1 year ago

Hey i want work on these issue

allejok96 commented 1 year ago

@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 commented 2 months ago

7333 fixes this.