|
From: | Alexis |
Subject: | Re: Human-readable file sorting |
Date: | Sun, 21 Feb 2016 20:30:28 +1100 |
User-agent: | mu4e 0.9.16; emacs 24.5.3 |
Lars Ingebrigtsen <address@hidden> writes:
I didn't know about `string-collate-lessp'. Looking at the code, it seems to end up calling wcscoll (gotta love C library function names). Which sorts according to the LC_COLLATE locale setting...Hm... I guess the numerical string sorting function could use that to sort the textual segments. Or perhaps there should be one with and one without? That is, the built-in sorting arsenal would be `unicode', `collate', `numerical', and `numerical-and-collate'?
Off the top of my head, that sounds like a good option to me (and i assume by 'unicode' you mean "sort by Unicode codepoint"?); but perhaps there are a number of possible issues with this approach that i'm not aware of ....
Alexis.
[Prev in Thread] | Current Thread | [Next in Thread] |