emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Human-readable file sorting


From: Lars Ingebrigtsen
Subject: Re: Human-readable file sorting
Date: Sun, 21 Feb 2016 13:18:57 +1100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

Alexis <address@hidden> writes:

> But, having read all the other posts in this discussion, i'm still not
> clear whether `logical-string-lessp` would use `string-collate-lessp`
> "under the hood" (or at least follow the value of LC_COLLATE or its
> closest equivalent)? i ask due to things like this:
>
> https://github.com/flexibeast/org-vcard/issues/18#issuecomment-92006062

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'?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no



reply via email to

[Prev in Thread] Current Thread [Next in Thread]