[Gambas-user] A string[].sort issue
Benoît Minisini
g4mba5 at gmail.com
Wed Aug 29 19:58:39 CEST 2018
Le 27/08/2018 à 18:04, Jorge Carrión a écrit :
> Hello
> I have problems ordering a string [] with the conventions of the Spanish
> language. It seems that, depending to the predefined constants chosen,
> it places the accented letters (áéíóú) at the end of the non-accented
> letters or, at most, at the end of the words with that letter. It also
> seems to ignore the white space character inside the words. Can someone
> confirm if it's my computer or is it a language thing or is it a Gambas bug?
> I attach a small project that illustrates what I want to say.
> Captura de pantalla de 2018-08-27 18-01-40.png
>
> regards
>
When you sort with gb.Language, you are using the comparison function of
the glibc that is based on the "collation" of the current language.
Apparently spaces are ignored (and I get the same sort with the French
language), but I can't do anything against that. It's the glibc!
Regards,
--
Benoît Minisini
More information about the User
mailing list