mattiash / angular-tablesort

Sort angularjs tables easily
MIT License
184 stars 66 forks source link

Sort descending on first click #102

Open lackovic opened 6 years ago

lackovic commented 6 years ago

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.

how2945ard commented 5 years ago

I wonder how can we do this too

mentamarindos commented 5 years ago

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.