help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Alternative to string< that works "well" with unicode


From: Rasmus
Subject: Re: Alternative to string< that works "well" with unicode
Date: Fri, 28 Nov 2014 01:32:00 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

Yuri Khan <yuri.v.khan@gmail.com> writes:

> On Fri, Nov 28, 2014 at 5:52 AM, Pascal J. Bourguignon
> <pjb@informatimago.com> wrote:
>
>>> Is there a function that will support my preferred sorting in Emacs?
>>
>> AFAICS, there's nothing yet.
>
> I think Emacs bug#18051 is relevant.

Thanks, the bug pointed me to `string-collate-lessp':

(sort '(É E T A À Z) 'string-collate-lessp)
      => (A À E É T Z)

Pretty cool!

Thanks!

-- 
The second rule of Fight Club is: You do not talk about Fight Club




reply via email to

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