briangann / grafana-datatable-panel

Datatables.net based panel for Grafana
Apache License 2.0
83 stars 58 forks source link

Sorting doesn't work correctly #117

Closed bryantlin closed 2 years ago

bryantlin commented 4 years ago

Hi, I understand #104 is closed but I find the issue below.

Original sort order:

Column

1 9 12 82 13

After sorting (i.e. clicking the header "Column"), the data looks like:

Column

1 12 13 82 9

Does anyone run into the same problem? Or, am I missing something?

Thanks!

ccnoecker commented 4 years ago

I am also having this issue with version 1.0.2 and Grafana 7, weirdly an old version (0.0.9) on another instance (Grafana 6) still works fine.

briangann commented 4 years ago

strange regression, will take a look

welyss commented 4 years ago

same problem, and I print the columnType with console.log('wys:' + columnType + ',text:' + this.table.columns[i].text); in file DatatableRenderer.ts:429 image

aerosadegh commented 4 years ago

I have same problem when update datatable panel to last version.

peterschristoph commented 4 years ago

Same here, also the datatype does not matter.

Problem:

ezerog commented 4 years ago

It looks like sorting as string. This should be fixed asap.

anthraxn8b commented 3 years ago

Would be great to have this fixed soon... Your plugin is currently my only chance to get CSV in Excel dialect :-)

hokiepokedad2 commented 3 years ago

I too have this problem.

briangann commented 3 years ago

in progress, need good sample data to work with to verify though :)

anthraxn8b commented 3 years ago

@briangann, use sample data with numbers ;-)

aerosadegh commented 3 years ago

in progress, need good sample data to work with to verify though :)

The num col in this tabel:

id num Country
1 95 Chile
2 883 US
3 79 Indonesia
4 754 Brazil
5 75 Romania
6 73 Turkey
7 61 South-Africa
8 56 Iraq
9 55 Italy
10 53 Czechia

version: 1.0.2 Unit: short ; Decimals: 0

ezerog commented 3 years ago

any plan to resolve?

briangann commented 3 years ago

yes, will prioritize this one along with a couple others over the next few days, thanks!

ezerog commented 3 years ago

When will this be resolved? 😭