I am creating a view with datatables in drupal 7. It has a column date in format 'd/m/Y'. For making it sort correctly, I am planning to add attribute 'data-order' to these table cells as referred from here.
I am facing issues while trying to rewrite the <td>
containing date with templates or preprocess functions. I want to add data-order attribute to date cell in every row so I can use it later for front-end sorting.
Can someone here help me?