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

Problem sorting bytes columns in dashboards #122

Open
flesueur opened this issue May 21, 2024 · 2 comments
Open

Problem sorting bytes columns in dashboards #122

flesueur opened this issue May 21, 2024 · 2 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@flesueur
Copy link
Contributor

Hi,

We have a custom dashboard showing storage usage in a table.

As you can see in the screenshot, when sorted, the column with the storage is in lexicographical order rather than sorted numerically
2024-05-21_17-02

Same issue appears when typing as bytes :
2024-05-21_17-12

It would be nice if we could have some improved sorting, or are we missing something ?

Cheers,
François

@coudot
Copy link
Member

coudot commented May 21, 2024

We should maybe look at https://datatables.net/reference/option/columns.type

@coudot coudot added the bug Something isn't working label May 21, 2024
@coudot coudot added this to the 0.6 milestone May 21, 2024
@coudot
Copy link
Member

coudot commented May 23, 2024

Tried several things this moring but did not succeed.

I think the first step will be to use a more recent version of datatables, then we could use this plugin: https://datatables.net/plug-ins/sorting/file-size

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
None yet
Development

No branches or pull requests

2 participants