Culture specific sorting
Culture specific sorting
Hello, any solution to use DataTables, and make it sort according to the specific culture?
for example, if I have a column that is in Chinese strings, and I want to sort the column based on Chinese characters sorting order...
I could do something like this if I have my table rendered on the server side.
But I don't know how to do this using DataTables (which is a client side approach).
Many thanks...
for example, if I have a column that is in Chinese strings, and I want to sort the column based on Chinese characters sorting order...
I could do something like this if I have my table rendered on the server side.
But I don't know how to do this using DataTables (which is a client side approach).
Many thanks...
This discussion has been closed.
Replies
Sorting based on the locale can be done with the Javascript function localeCompare ( http://www.tutorialspoint.com/javascript/string_localecompare.htm ) as a sorting plug-in for DataTables. I'm not sure how cross browser compatible it is though.
Allan