Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Host browser Sortierung ist nicht korrekt #1375

Open
ppabst opened this issue Jun 13, 2022 · 4 comments
Open

Host browser Sortierung ist nicht korrekt #1375

ppabst opened this issue Jun 13, 2022 · 4 comments
Labels
Database database related issue enhancement

Comments

@ppabst
Copy link

ppabst commented Jun 13, 2022

Wenn ich im Host browser bin und möchte nach Host name sortieren, dann wird dort nicht korrekt sortiert.
Aufsteigend wegen Zahlen wie 10 11 12 vor 1 2 3 sortiert.
Absteigend dann 9 8 7 ... 1 16 15 14

grafik

@nook24 nook24 transferred this issue from it-novum/openitcockpit-agent-go Jun 21, 2022
@nook24
Copy link
Member

nook24 commented Jun 21, 2022

Ich habe das Issue in das richtige Repository verschoben.

Leider sind uns hier die Hände gebunden, da MySQL keine natürliche Sortierung unterstützt.

Zeichenketten werden von MySQL anhand der Positionierung in der UTF-8 Tabelle sortiert. Daher kommen Großbuchstaben vor Kleinbuchstaben, - vor _ etc.

@itsdaveit
Copy link

@ppabst Wäre für deinen Zweck nicht eine Reihenfolge der Cams mit "0" aufgefüllt , wie C01_Toreinfahrt die Lösung?

@nook24
Copy link
Member

nook24 commented Sep 23, 2022

Interessant, MariaDB hat kürzlich NATURAL_SORT_KEY eingeführt: https://mariadb.com/kb/en/natural_sort_key/
https://mariadb.com/kb/en/changes-improvements-in-mariadb-107/#natural-sort

Mit etwas Glück übernimmt MySQL dies in Zukunft. Bis es jedoch soweit ist, können wir aber leider nur abwarten und Tee trinken 🍵.

@nook24 nook24 added enhancement Database database related issue labels Sep 23, 2022
@nook24
Copy link
Member

nook24 commented Jan 4, 2024

Ich habe da keine große Hoffnung, der Feature Request ist bei MySQL seit 2003 offen: https://bugs.mysql.com/bug.php?id=1588

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Database database related issue enhancement
Projects
None yet
Development

No branches or pull requests

3 participants