[Top][All Lists]

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

Re: sort-lines including non ASCII

From: Uwe Brauer
Subject: Re: sort-lines including non ASCII
Date: Thu, 07 Jul 2016 07:35:34 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

   > Uwe Brauer <address@hidden> writes:

   > (sort (list "Arrieta" "Antón" "Álvarez") 'string-collate-lessp)

   > If that doesn't work, check your LOCALE (or LANG) environment variable
   > (see the docstring of string-collate-lessp for details).

   > Someting like

   > (sort (list "Antón" "Arrieta" "Álvarez")
   >       (lambda (a b)
   >    (string-collate-lessp a b "es_ES.UTF-8" t)))

   > should do the right thing regardless of your environment variables (at
   > least on GNU/Linux).

Thanks but suppose I have 100 lines, using your solution would be
cumbersome. Wouldn't it be better to modify sort-lines?

reply via email to

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