Seperate values for rendering and sorting

Seperate values for rendering and sorting

frederikfrederik Posts: 1Questions: 0Answers: 0
edited August 2011 in General
I always recieve pairs of data from the server: sorting value and rendering value. For example a timestamp to sort on and a formatted date.

Is there an easy way to tell datatables to sort on the timestamp rather than the date? The timestamp is not supposed to be visible for the user.

Thanks!

Replies

  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin
    You could do something like the hidden title sorting plug-in does: http://datatables.net/plug-ins/sorting#hidden_title

    Allan
This discussion has been closed.