How to sort number as string
How to sort number as string
![vincmeister](https://secure.gravatar.com/avatar/e03720111ea7994e99771bbb830ed9a1/?default=https%3A%2F%2Fvanillicon.com%2Fe03720111ea7994e99771bbb830ed9a1_200.png&rating=g&size=120)
in DataTables
Hi All,
How to to sort number as string?
expected result:
12
134
14
256
27
please advise, thank you
Danny
This question has an accepted answers - jump to answer
Answers
Try setting
columns.type
to string for that column. Like this:http://live.datatables.net/voduhata/1/edit
Kevin
thank Kevin![:smile: :smile:](https://datatables.net/forums/resources/emoji/smile.png)
it works