How can i change the ID display sorting order
How can i change the ID display sorting order
Glasya
Posts: 3Questions: 1Answers: 0
Hi guys,
My datatables is displaying my ID order in a way i don't want it to like:
1
10
100
1000
2
20
200
i want it to render normally like:
1
2
3
4
5
etc.
How can i do this?
This discussion has been closed.
Answers
Anyone? Still not resolved.
Take a look at this thread http://datatables.net/forums/discussion/367/bug-sort-number-column-and-stype and this SO answer : http://stackoverflow.com/a/8009043/617373
Thanks daniel, i found out that the problem was due to the fact that i had made the id's href linkable. By assigning it as numberic upon initialisation it displays them properly, the only thing i could not get working so far is the sorting, this only works when i remove the hrefs.