From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastian =?utf-8?Q?Reu=C3=9Fe?= Subject: Re: bug: org-table-sort-lines does only case sensitive alphabetical sorting Date: Sat, 14 Jul 2018 14:31:08 +0200 Message-ID: <87efg6ov77.fsf@wirrsal.net> References: <87sh4zrn7i.fsf@nicolasgoaziou.fr> <87bmbaw5cf.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55665) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1feJhv-0000UY-7i for emacs-orgmode@gnu.org; Sat, 14 Jul 2018 08:31:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1feJhr-0000c4-8w for emacs-orgmode@gnu.org; Sat, 14 Jul 2018 08:31:27 -0400 Received: from wirrsal.net ([188.68.36.149]:50872 helo=mail.wirrsal.net) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1feJhq-0000R7-V1 for emacs-orgmode@gnu.org; Sat, 14 Jul 2018 08:31:23 -0400 In-reply-to: <87bmbaw5cf.fsf@nicolasgoaziou.fr> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Nicolas Goaziou Cc: emacs-orgmode@gnu.org, Heikki Lehvaslaiho Hello Nicolas, hello Heikki, > Heikki Lehvaslaiho writes: >> I can not see any change in function with the new code. Alphabetical >> sorting is fixedly case sensitive. Is your Emacs=E2=89=A424? Emacs (surprisingly) only gained a facility for alphabetic (locale-sensitive) sorting with ver.=E2=80=AF25. Before that, we= will resort to using =C2=ABstring-lessp=C2=BB, which only sorts lexicographicall= y (i.e, based on the binary character value, which means it is always case-sensitive on Unicode systems). If you are using GNU Emacs=E2=89=A525, what locale are you using? FI_fi and= most of the other western locales are based on ISO-14651, so you should always get case-*in*sensitive orderings, which is what I get with Emacs 26.1. So, evaluating the following should all yield =C2=ABt=C2=BB: (string-collate-lessp "a" "x" "de_DE.utf-8" nil) (string-collate-lessp "a" "X" "de_DE.utf-8" t) (string-collate-lessp "a" "x" "fi_FI.utf-8" nil) (string-collate-lessp "a" "X" "fi_FI.utf-8" t) Kind regards, Sebastian --=20 Insane cobra split the wood Trader of the lowland breed Call a jittney, drive away In the slipstream we will stay