How to define sorting value for a column

How to define sorting value for a column

emzeroemzero Posts: 2Questions: 1Answers: 0

I'm using Livestamp.js plugin to format a datetime to "an hour ago" style.

So my <td>s end up like this:

<td>
  <abbr title="November 4, 2014 7:14 PM" data-date="2014-11-04T19:14:00-03:00>a year ago</abbr>
</td>

When sorting, it uses the "a year ago" text and, of course, it doesn't sort it correctly. Is there a way to tell "use this attribute (data-date) to sort this column" ?

Answers

This discussion has been closed.