Open flesueur opened 1 month ago
We should maybe look at https://datatables.net/reference/option/columns.type
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
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](https://github.com/ltb-project/service-desk/assets/11961066/9ece9b95-065f-46a7-8fc7-4fb1cd91c910)
Same issue appears when typing as bytes :![2024-05-21_17-12](https://github.com/ltb-project/service-desk/assets/11961066/cfd943ac-d611-41d4-95a1-2aad02d0a63e)
It would be nice if we could have some improved sorting, or are we missing something ?
Cheers, François