taburineagle / MPC-HC-Looper

A/B looping program to complement the MPC-HC media player, with speed controls, playlist creation (and saving), and tie-in to my Looper Trimmer EDL editing program.
Other
15 stars 1 forks source link

Implement natural sorting order algorithm #10

Open h0rn3z0r opened 3 years ago

h0rn3z0r commented 3 years ago

Let's say I have three events named event1, event2 and event11. If you press on a column header, rows will be sorted alphabetically: event1, event11, event2. It would be more useful to sort them naturally. This will also correspond with the way of how Windows Explorer handles filenames sorting.

taburineagle commented 3 years ago

Ah, yes - I completely agree with you on this! Unfortunately, string-based sorting (which is what most programs sort using) always sort things this way, as they're comparing the strings themselves (and not taking the number at the end into consideration). There are other ways to sort though, this one will take a bit of brainstorming, so I'll leave this one as a possibility in the future.