[Gambas-user] A string[].sort issue

Jorge Carrión shordi at gmail.com
Wed Aug 29 21:16:29 CEST 2018


Ok. Thanks for the answer Benoit. I have coded a solution to the problem
(and got another one better on this list!).

Gambas rules!

Best Regards


El mié., 29 ago. 2018 a las 19:59, Benoît Minisini (<g4mba5 at gmail.com>)
escribió:

> 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
>
> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20180829/9f5439b0/attachment.html>


More information about the User mailing list