If the column order changes, you can instead set the sorter using a class name (ref):
<th class="sorter-agoSort">Post Date</th>
If the column order changes after the table has initialized, use the updateAll
method to update the table cache.
As an aside, if you want to use a library for a more rich natural language date sort, try out something like sugar. Check out this demo