linuxmint / nemo

File browser for Cinnamon
GNU General Public License v2.0
1.19k stars 299 forks source link

Sorting "e..." at a wildly different spot than "E..." is counter-intuitive #2919

Open ell1e opened 2 years ago

ell1e commented 2 years ago

Issue Sorting "e..." at a wildly different spot than "E..." is counter-intuitive. It might make sense if one knows how ASCII internally works, but the average user definitely doesn't, and I'd argue most people would expect esther1 and Esther2 to be sorted next to each other.

Steps to reproduce

  1. Look at the folder listing of any folder with Nemo with the default sorting where folders use both capitalized and non-capitalized first letters

Expected behaviour Alphabetic sorting ignoring case outside of tie-breaks (should probably use a proper unicode lowering that works with umlaut characters and such as well)

Other information

fredcw commented 2 years ago

Nemo version 4.8.6 is from may 21. Current version is 5.2.4 This problem doesn't seem to be present in the current version.

Jeremy7701 commented 2 years ago

Sorting order is locale dependent. There is no "universal" collating sequence.

ell1e commented 2 years ago

Ah, fascinating! Does anyone happen to know by any chance if that'd be LC_COLLATE, and if that one actually works with musl libc + Alpine for Nemo? I tried this in /etc/profile.d/locale.sh which is how one is apparently supposed to set it on Alpine (on which postmarketOS is based), but it doesn't change anything:

export CHARSET=UTF-8
export LANG=C.UTF-8
export LC_COLLATE=en_US

Now did I just set it wrong, or is it some musl limitation, or some limitation how Nemo interacts with musl or something? :eyes: Sorry, I just find this whole locale thing kind of confusing.