Sorting integers
Sorting integers

With 1.7, i have a table with several integer values. If i sort by this column they get sorted like this:
9
8
6
5
3
22
21
20
2
19
18
17
etc...
It seems to be sorting by the first digit of the integer. Is there some setting i can use to fix this?
9
8
6
5
3
22
21
20
2
19
18
17
etc...
It seems to be sorting by the first digit of the integer. Is there some setting i can use to fix this?
This discussion has been closed.
Replies
Allan
However - it should work automatically - as showing in the fourth column here: http://datatables.net/
Allan
Allan
I had trouble understanding the documentation, and didn't know that the sType needed to be "num-html".