Culture specific sorting

Culture specific sorting

ClementClement Posts: 1Questions: 0Answers: 0
edited September 2010 in General
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...

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Hi Clement,

    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
This discussion has been closed.