PacketQ icon indicating copy to clipboard operation
PacketQ copied to clipboard

Sorting by ascii value even for "count" type columns

Open olof opened this issue 12 years ago • 1 comments

In html_NG i noticed that, at least, some query types, like "top 1000 qnames" resulted in a nice table, but with the count sorted by the ascii values instead of its numerical values, as one would expect, e.g.: [1,2,22,3,4] instead of [1,2,3,4,22]. The sorting is performed in javascript, and that's pretty much magic to me :-).

olof avatar Jan 21 '13 22:01 olof

PacketQ is using Datatables for displaying data and a quick google on the issue turned up this bug.

http://datatables.net/forums/discussion/367/bug-sort-number-column-and-stype/p1

I don't have anyone with the right knowledge at the moment that can look at this, but there might be some tips in the thread above or somewhere else online. If you figure out a solution please let us know.

rickarddahlstrand avatar Jan 22 '13 10:01 rickarddahlstrand