<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi Jorge,<br>
<br>
A friend of mine, Matt Collins, has also produced some code to
solve your problem. You can test it for speed, let us know which
is faster. See attached.<br>
<br>
Charlie<br>
<br>
On 29/08/18 20:13, Jorge Carrión wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAOx-q9uCu+9pwvPN=6RptccLPXn4dQj5VYXGmDU=t2oSV3H+tg@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<div dir="ltr">
<div>Thank you Charlie <br>
</div>
<div><br>
</div>
<div>I've wrote my own solution for the issue (and got another
from <a href="http://gambas-es.org" moz-do-not-send="true">gambas-es.org</a>
forum), but your's is about 7 times faster than mine! I think
I'll use yours. <br>
</div>
<div><span id="gmail-result_box" class="gmail-" tabindex="-1"
lang="en"><span class="gmail-">Unfortunately both solutions
have to provide a list of special characters of the
language, so they are not valid standard solutions for any
language.</span></span></div>
<div><br>
</div>
<div>Best Regards<br>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr">El mié., 29 ago. 2018 a las 17:58, Charlie Ogier
(<<a href="mailto:charlie@cogier.com"
moz-do-not-send="true">charlie@cogier.com</a>>) escribió:<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div class="m_-1423762330709211166moz-cite-prefix">Hi Jorge,<br>
<br>
Your computer is fine. I also had the same problem when I
ran your program on Mint 19 (<span
id="m_-1423762330709211166gmail-result_box"
class="m_-1423762330709211166gmail-" lang="en"><span
class="m_-1423762330709211166gmail-">Language=en_GB.UTF-8).
I tried several ideas to sort the problem. Finally I
came up with this solution, see attached.<br>
<br>
Charlie<br>
<br>
Translation by <a href="https://www.deepl.com"
target="_blank" moz-do-not-send="true">https://www.deepl.com</a><br>
<br>
Hola Jorge,<br>
<br>
Tu computadora está bien. También tuve el mismo
problema cuando ejecuté su programa en Mint 19
(Language=en_GB.UTF-8). Intenté varias ideas para
solucionar el problema. Finalmente se me ocurrió esta
solución, ver adjunto.<br>
<br>
Charlie<br>
<br>
<img src="cid:part2.9B2233BB.04D6F26B@cogier.com"
alt="" moz-do-not-send="true" width="457"
height="428"><br>
</span></span><br>
On 27/08/18 17:04, Jorge Carrión wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr"><span
id="m_-1423762330709211166gmail-result_box"
class="m_-1423762330709211166gmail-" lang="en"><span>Hello</span><br>
<span>I have problems ordering a string [] with the
conventions of the Spanish language.</span> <span
class="m_-1423762330709211166gmail-">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.</span> <span
class="m_-1423762330709211166gmail-">It also seems
to ignore the white space character inside the
words.</span> <span
class="m_-1423762330709211166gmail-">Can someone
confirm if it's my computer or is it a language
thing or is it a Gambas bug?</span><br>
<span class="m_-1423762330709211166gmail-">I attach a
small project that illustrates what I want to say.</span><br>
</span>
<div><img src="cid:part3.16B370CD.D557B9CF@cogier.com"
alt="Captura de pantalla de 2018-08-27 18-01-40.png"
moz-do-not-send="true" width="547" height="358"><br>
</div>
<span id="m_-1423762330709211166gmail-result_box"
class="m_-1423762330709211166gmail-" lang="en"><br>
</span>
<div><span id="m_-1423762330709211166gmail-result_box"
class="m_-1423762330709211166gmail-" lang="en"><span
class="m_-1423762330709211166gmail-">regards</span></span></div>
<div><span id="m_-1423762330709211166gmail-result_box"
class="m_-1423762330709211166gmail-" lang="en"><span
class="m_-1423762330709211166gmail-"><br>
</span></span></div>
<div><span id="m_-1423762330709211166gmail-result_box"
class="m_-1423762330709211166gmail-" lang="en"><span
class="m_-1423762330709211166gmail-">[System]<br>
Gambas=3.11.4<br>
OperatingSystem=Linux<br>
Kernel=4.15.0-33-generic<br>
Architecture=x86_64<br>
Distribution=Linux Mint 19 Tara<br>
Desktop=CINNAMON<br>
Theme=Gtk<br>
Language=es_ES.UTF-8<br>
Memory=16001M<br>
<br>
[Libraries]<br>
Cairo=libcairo.so.2.11510.0<br>
Curl=libcurl.so.4.5.0<br>
DBus=libdbus-1.so.3.19.4<br>
GStreamer=libgstreamer-1.0.so.0.1401.0<br>
GTK+2=libgtk-x11-2.0.so.0.2400.32<br>
GTK+3=libgtk-3.so.0.2200.30<br>
OpenGL=libGL.so.1.0.0<br>
Poppler=libpoppler.so.73.0.0<br>
QT4=libQtCore.so.4.8.7<br>
QT5=libQt5Core.so.5.9.5<br>
SDL=libSDL-1.2.so.0.11.4<br>
SQLite=libsqlite3.so.0.8.6<br>
<br>
[Environment]<br>
CINNAMON_VERSION=3.8.8<br>
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus<br>
DEFAULTS_PATH=/usr/share/gconf/cinnamon.default.path<br>
DESKTOP_SESSION=cinnamon<br>
DISPLAY=:0<br>
GB_GUI=gb.qt4<br>
GDMSESSION=cinnamon<br>
GDM_LANG=es_ES<br>
GIO_LAUNCHED_DESKTOP_FILE=<home>/.cinnamon/panel-launchers/cinnamon-custom-launcher-1.desktop<br>
GIO_LAUNCHED_DESKTOP_FILE_PID=5296<br>
GJS_DEBUG_OUTPUT=stderr<br>
GJS_DEBUG_TOPICS=JS ERROR;JS LOG<br>
GNOME_DESKTOP_SESSION_ID=this-is-deprecated<br>
GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1<br>
GTK_MODULES=gail:atk-bridge<br>
GTK_OVERLAY_SCROLLING=1<br>
HOME=<home><br>
LANG=es_ES.UTF-8<br>
LANGUAGE=es_ES.UTF-8<br>
LOGNAME=<user><br>
MANDATORY_PATH=/usr/share/gconf/cinnamon.mandatory.path<br>
PATH=.:<home>/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games<br>
PWD=<home><br>
QT_ACCESSIBILITY=1<br>
QT_QPA_PLATFORMTHEME=qt5ct<br>
SESSION_MANAGER=local/<hostname>:@/tmp/.ICE-unix/1259,unix/<hostname>:/tmp/.ICE-unix/1259<br>
SHELL=/bin/bash<br>
SHLVL=0<br>
SSH_AGENT_PID=1323<br>
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh<br>
TZ=:/etc/localtime<br>
USER=<user><br>
XAUTHORITY=<home>/.Xauthority<br>
XDG_CONFIG_DIRS=/etc/xdg/xdg-cinnamon:/etc/xdg<br>
XDG_CURRENT_DESKTOP=X-Cinnamon<br>
XDG_DATA_DIRS=/usr/share/cinnamon:/usr/share/gnome:<home>/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share<br>
XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/<user><br>
XDG_RUNTIME_DIR=/run/user/1000<br>
XDG_SEAT=seat0<br>
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0<br>
XDG_SESSION_DESKTOP=cinnamon<br>
XDG_SESSION_ID=c2<br>
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0<br>
XDG_SESSION_TYPE=x11<br>
XDG_VTNR=7<br>
</span></span></div>
</div>
<br>
<fieldset
class="m_-1423762330709211166mimeAttachmentHeader"></fieldset>
<br>
<pre>----[ Gambas mailing-list is hosted by <a class="m_-1423762330709211166moz-txt-link-freetext" href="https://www.hostsharing.net" target="_blank" moz-do-not-send="true">https://www.hostsharing.net</a> ]----
</pre>
</blockquote>
<br>
</div>
<br>
----[ Gambas mailing-list is hosted by <a
href="https://www.hostsharing.net" rel="noreferrer"
target="_blank" moz-do-not-send="true">https://www.hostsharing.net</a>
]----<br>
</blockquote>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">
----[ Gambas mailing-list is hosted by <a class="moz-txt-link-freetext" href="https://www.hostsharing.net">https://www.hostsharing.net</a> ]----
</pre>
</blockquote>
<br>
</body>
</html>