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

Sort by integer giving string sort #904

Open
ashik-aufaitux opened this issue Dec 9, 2024 · 8 comments
Open

Sort by integer giving string sort #904

ashik-aufaitux opened this issue Dec 9, 2024 · 8 comments
Assignees
Labels
bug 🪲 Something isn't working

Comments

@ashik-aufaitux
Copy link

Describe the bug
A clear and concise description of what the bug is.
image

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Application (please complete the following information):

  • App client [e.g. MySQL]
  • App version [e.g. 0.5.2]
  • Installation source: [e.g. exe, Linux Store, AppImage, dmg]

Environment (please complete the following information):

  • OS name: [e.g. Windows 11]
  • OS version [e.g. 21H2]
  • DB name [e.g. MariaDB]
  • DB version [e.g. 10.3.34]

Additional context
Add any other context about the problem here.

@Fabio286
Copy link
Member

Fabio286 commented Dec 9, 2024

Hi @ashik-aufaitux ,

Which version of Antares are you using?

@ashik-aufaitux
Copy link
Author

ashik-aufaitux commented Dec 9, 2024 via email

@Fabio286
Copy link
Member

Fabio286 commented Dec 9, 2024

Can you tell me what database the problem occurs on and what type is that number field?
Where did you install Antares from?

@ashik-aufaitux
Copy link
Author

Its in MySql database and primary key id field. I have installed it from https://antares-sql.app/ and it gets updated automatically.

@D-nov
Copy link

D-nov commented Dec 19, 2024

Just logged in to report the same bug...
is there like "bump" button or something that I need to press to mark that I also have the same issue?

@Fabio286 Fabio286 added the bug 🪲 Something isn't working label Dec 19, 2024
@Fabio286
Copy link
Member

Just logged in to report the same bug... is there like "bump" button or something that I need to press to mark that I also have the same issue?

I have made some tests but cannot replicate the problem.
Could you give me more information about the context?
For example from what operating system and what type of data contains the field with the problem, e.g. INT, BIGINT, TINYINT etc.

@D-nov
Copy link

D-nov commented Dec 19, 2024

sure, here it is:
My setup is Ubuntu (whatever is latest 24.xx)
MariaDB: mysql Ver 15.1 Distrib 10.11.8-MariaDB
Antares: 0.7.30, but I think this bug has been here for a while

Id column of type BIGINT, length 20, unsigned, autoincrement (this is the most obvious one because i use it daily)
also VARCHAR 255 seem to sort weird because 010 comes before 002

so far I only noticed those

@Fabio286
Copy link
Member

Currently, Antares, for tables that have fewer records than the result limit (1000 by default) performs a software-side sort, without redoing the query.
However, I realise that there are situations in which this leads to anomalous results, or in any case not in line with what the database would return, according to its settings.
Therefore from the next release all sort will be the result of a query. On the user side, nothing will change, but at least these anomalous situations should disappear.

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

3 participants