rampageX wrote:
In your screenshot on the RIGHT, I see that all latin characters+unicode are
sorted correctly, and it's now consistent (when navigating and re-sorting), and that is the fix. On your system (Chinese OS browser, I don't know what combo), it is sorting Chinese BEFORE Latin, because browser/device/javascript thinks that is correct based on your own locale (Chinese). This is a device implementation issue. On my system, it sorts Latin FIRST, because my system is detected Latin. It's your OS/browser/Javascript that thinks the Chinese should be on top.
There is no Javascript method that sorts like you request, unless you can configure it by specifying a locale
intl.Collator().
In your screenshot on LEFT, the dirs are loaded from PHP and don't have or need sorting by Javascript. The reason they seem correct (for you), is just because PHP does not recognize unicode (Chinese) and therefore just puts them last. This sorting is actually WRONG because "écru" is after "zzz". We cannot use PHP sorting for dynamic javascript list sorting, especially when it's not even correct.
There is a new option
sort_function in latest release. By default, it is set to "locale", but you can change it to
"basic" and it will work like datatables.js and like Files app before version 0.3.0 (you tested and said it worked). It will sort basic latin correctly, but will not understand é<f (unicode) or 2<10, and Chinese words will come last, but only because all unicode is places last.
In conclusion, the "Sort chaos" you are referring to no longer exists, and sorting is working as it's supposed to based on device/browser implementation. This might not be right for Chinese on your OS/browser, but then you have new
sort_function option. There is no way to sort Chinese in Javascript like you request. If you revert to sort_function "basic", it will sort like in the menu ... The only reason this works, is because it doesn't recognize unicode properly and will place unicode words last.