angular-tablesort icon indicating copy to clipboard operation
angular-tablesort copied to clipboard

Sort descending on first click

Open lackovic opened this issue 8 years ago • 2 comments

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.

lackovic avatar Oct 10 '17 12:10 lackovic

I wonder how can we do this too

how2945ard avatar Nov 29 '18 14:11 how2945ard

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.

mentamarindos avatar Mar 22 '19 22:03 mentamarindos