GenSpectrum / dashboard-components

https://genspectrum.github.io/dashboard-components/
GNU Affero General Public License v3.0
2 stars 0 forks source link

Aggregate table: sorting is wrong #270

Closed chaoran-chen closed 5 months ago

chaoran-chen commented 6 months ago

The order is wrong:

image
chaoran-chen commented 5 months ago

On http://staging.genspectrum.org:4321/rsv-a/sequencing-efforts, sorting by host_name_scientific doesn't change anything:

image

image

(Sorting by count and proportion works well.)

chaoran-chen commented 5 months ago

Ah, on the same page, if we sort by geo_loc_country asc. and go to the button, we see:

image

It seems that everything above empty is correctly sorted but emptiness breaks further sorting. Is it a Gridjs bug?

JonasKellerer commented 5 months ago

I tried to use our "initialSort" feature. There the sorting seems to be fine. So it seems that gridjs has some bug. I'll now try to add a sort function to the fields.

chaoran-chen commented 5 months ago

If it's a bug of gridjs, I think that it would be great to report it :)