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

Jorge Carrión shordi at gmail.com
Fri Aug 31 20:31:28 CEST 2018


Yes, that is the problem. I had written my own solution before posting the
problem, but I did not like having to provide the special characters of my
language (Spanish), I was looking for a more universal solution but Benoit
made it clear that it does not exist, so the only solution is to give the
characters to the function (or class) that make the sort.
The bad news is that if you expand the number of characters, you slow down
the function ... maybe it is possible make it be selected according to the
installed language, but I do not know if it's worth it.

Best Regards

El vie., 31 ago. 2018 a las 20:18, Christof Thalhofer (<chrisml at deganius.de>)
escribió:

> Hello Charlie,
>
> Am 29.08.2018 um 17:57 schrieb Charlie Ogier:
>
> > Your computer is fine. I also had the same problem when I ran your
> > program on Mint 19 (Language=en_GB.UTF-8). I tried several ideas to sort
> > the problem. Finally I came up with this solution, see attached.
>
> "Dim sFixList1 As String[] = ["á", "é", "í", "ó", "ú", "ñ", "ü"]"
>
> As a german I miss ä and ö. And I think there are a lot of other letters
> in other languages which could be sorted also, here are some examples:
>
> https://en.wikipedia.org/wiki/Slovak_orthography
>
> č ď ň ŕ š
>
> or https://en.wikipedia.org/wiki/Danish_orthography
>
> ø å æ
>
> https://en.wikipedia.org/wiki/Albanian_alphabet
>
> ç ë
>
> https://en.wikipedia.org/wiki/Icelandic_orthography
>
> ð í ó ý
>
> :-)
>
>
> Alles Gute
>
> Christof Thalhofer
>
> --
> Dies ist keine Signatur
>
>
> ----[ 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/20180831/77f2a7f0/attachment.html>


More information about the User mailing list