How to sort a-b-c data in row (1.10.0)
How to sort a-b-c data in row (1.10.0)
Rozman
Posts: 7Questions: 1Answers: 0
Hello, please help me sort a row with a-b-c data, for example: 95-75-6
Where must sort in order A, B, C.
For example, sort like this:
100 - 40 - 3
100 - 37 - 2
90 - 47 - 10
90 - 47 - 9
87 - 3 - 10
83 - 34 - 11
Thank you.
This discussion has been closed.
Answers
There is no option in DataTables to sort columns. Only rows can be ordered.
If you need to order complex, non-numeric data, then you need to create a plug-in sorting method: http://legacy.datatables.net/development/sorting#type_based
Allan