Custom sorting
Custom sorting
Is is possible to sort a table column by a hidden value in each tag or something similar?
I have information with
tags in the cell so sorting by the text would not work correctly. Any ideas would be greatly appreciated.
Thanks in advance.
I have information with
tags in the cell so sorting by the text would not work correctly. Any ideas would be greatly appreciated.
Thanks in advance.
This discussion has been closed.
Replies
you can create a custom sort type (sType and oSort functions)
http://www.datatables.net/plug-ins/sorting
custom sort type detection routines (to use oSort without specifying sType) http://www.datatables.net/plug-ins/type-detection
sort one column based on another's values
http://www.datatables.net/ref#iDataSort
or create a custom array of values to sort by for a column (afnSortData)
http://www.datatables.net/examples/plug-ins/dom_sort.html
http://datatables.net/development/sorting