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

Sorting on column now show correct display data #883

Closed
atanaspuskulev opened this issue Oct 12, 2024 · 1 comment
Closed

Sorting on column now show correct display data #883

atanaspuskulev opened this issue Oct 12, 2024 · 1 comment
Assignees
Labels
bug 🪲 Something isn't working

Comments

@atanaspuskulev
Copy link

Wrongly column data sorting
I have a MariaDB table with several columns. One of them, may or may not contain data (empty). When sorting this particular column, it is not correctly sorting the data. If there's an empty cell(s) in the display - they're always on the top. Actually the entire rows of the table are not being sorted by the view. Happens when visually sorting via the column name by clicking it.

To Reproduce
Steps to reproduce the behavior:

  1. Have a table with couple of columns, let's for example of of them has no data(empty):

++++++++++++++++++++++++++++
| id | title | some_type | date |
++++++++++++++++++++++++++++
| 1 | Smt | type_1 | 2024|

| 2 | Smt1 | type_2 | 2023|

| 3 | Smt2 | | 2023|

| 4 | Smt3 | | 2022|

  1. Click on sort by "some_type" to actually sort the data;
  2. See of the sorting work
  3. You will notice that the empty rows are always unsorted and then the next with actual data are.

Expected behavior
Sort even the empty cells ASC/DESC and accordingly display the results.

Screenshots
Screenshot_20241012_112130

Screenshot_20241012_112718

Application (please complete the following information):

  • MariaDB
  • 0.7.28
  • Linux (Ubuntu) via the app center.

Environment (please complete the following information):

  • Kubuntu
  • 24.10
  • MariaDB
  • 11.5.2

Additional context
N/A

@bart-schaefer
Copy link

This is a known behavior of the ORDER BY operation in MariaDB. See here:
https://mariadb.com/kb/en/order-by/

@Fabio286 Fabio286 added the bug 🪲 Something isn't working label Oct 15, 2024
@Fabio286 Fabio286 moved this from 📌 To do to ⏳ In progress in Work in Progress Board Oct 17, 2024
@Fabio286 Fabio286 moved this from ⏳ In progress to ✔ Done in Work in Progress Board Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🪲 Something isn't working
Projects
Status: Done
Development

No branches or pull requests

4 participants
@atanaspuskulev @Fabio286 @bart-schaefer and others