[Gambas-bugtracker] Bug #2208: Wrong Sorting of ListBox

bugtracker at gambaswiki.org bugtracker at gambaswiki.org
Mon May 24 10:55:16 CEST 2021


http://gambaswiki.org/bugtracker/edit?object=BUG.2208&from=L21haW4-

Claus DIETRICH reported a new bug.

Summary
-------

Wrong Sorting of ListBox

Type             : Bug
Priority         : Medium
Gambas version   : 3.16
Product          : Unknown


Description
-----------

When the ListBox sorted-property is set to True its sorting only works correctly with capital letters. As soon as the first character of the list-item is a small letter the sorting fails and the item is put behind list items with capital letters.

I attached a very small demo snippet for reproduction which also shows a listview-control for comparison, where the sorting works correctly.


System information
------------------

[System]
Gambas=3.15.2
OperatingSystem=Linux
Kernel=4.15.0-143-generic
Architecture=x86
Distribution=Linux Mint 19.1 Tessa
Desktop=LXDE
Theme=qt5ctproxy
Language=de_DE.UTF-8
Memory=1241M

[Libraries]
Cairo=libcairo.so.2.11510.0
Curl=libcurl.so.4.5.0
DBus=libdbus-1.so.3.19.4
GDK2=libgdk-x11-2.0.so.0.2400.32
GDK3=libgdk-3.so.0.2200.30
GStreamer=libgstreamer-1.0.so.0.1405.0
GTK+2=libgtk-x11-2.0.so.0.2400.32
GTK+3=libgtk-3.so.0.2200.30
OpenGL=libGL.so.1.0.0
Poppler=libpoppler.so.73.0.0
Poppler=libpoppler.so.85.0.0
Poppler=libpoppler.so.90.0.0
QT4=libQtCore.so.4.8.7
QT5=libQt5Core.so.5.9.5
SDL=libSDL-1.2.so.0.11.4
SQLite=libsqlite3.so.0.8.6

[Environment]
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
DEFAULTS_PATH=/usr/share/gconf/LXDE.default.path
DESKTOP_SESSION=LXDE
DISPLAY=:0.0
GB_GUI=gb.qt5
GDMSESSION=LXDE
GDM_LANG=de_DE
GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1
GTK_MODULES=gail:atk-bridge
HOME=<home>
LANG=de_DE.UTF-8
LANGUAGE=de_DE.UTF-8
LC_ADDRESS=de_DE.UTF-8
LC_ALL=de_DE.UTF-8
LC_IDENTIFICATION=de_DE.UTF-8
LC_MEASUREMENT=de_DE.UTF-8
LC_MONETARY=de_DE.UTF-8
LC_NAME=de_DE.UTF-8
LC_NUMERIC=de_DE.UTF-8
LC_PAPER=de_DE.UTF-8
LC_TELEPHONE=de_DE.UTF-8
LC_TIME=de_DE.UTF-8
LOGNAME=<user>
MANDATORY_PATH=/usr/share/gconf/LXDE.mandatory.path
PATH=<home>/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
PWD=<home>
QT_ACCESSIBILITY=1
QT_LOGGING_RULES=*.debug=false
QT_QPA_PLATFORMTHEME=qt5ct
SAL_USE_VCLPLUGIN=gtk
SHELL=/bin/bash
SHLVL=0
SSH_AGENT_PID=1205
SSH_AUTH_SOCK=/tmp/ssh-Ni7ABcGZNGWO/agent.1109
TZ=:/etc/localtime
USER=<user>
XAUTHORITY=<home>/.Xauthority
XDG_CONFIG_DIRS=/etc/xdg/xdg-LXDE:/etc/xdg
XDG_CONFIG_HOME=<home>/.config
XDG_CURRENT_DESKTOP=LXDE
XDG_DATA_DIRS=/usr/local/share:/usr/share:/usr/share/gdm:/var/lib/menu-xdg:/usr/local/share/:/usr/share/:/usr/share/gdm/:/var/lib/menu-xdg/
XDG_DATA_HOME=<home>/.local/share
XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/<user>
XDG_MENU_PREFIX=lxde-
XDG_RUNTIME_DIR=/run/user/1000
XDG_SEAT=seat0
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
XDG_SESSION_DESKTOP=LXDE
XDG_SESSION_ID=c1
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
XDG_SESSION_TYPE=x11
XDG_VTNR=7
_LXSESSION_PID=1109




More information about the Bugtracker mailing list