angular-tablesort
angular-tablesort copied to clipboard
Sort descending on first click
Is there a way to set for a specific column the ordering direction of the first click? The default behavior is Click once on a heading to sort ascending, twice for descending. I would like to have Click once on a heading to sort descending, twice for ascending.
I wonder how can we do this too
Maybe you missed to add the ts-default to the heading
<th ts-criteria="Name | lowercase" ts-default>Name</th>
It starts sorting ascending then you just click once and it sorts descending. Hope it helps.