iDataSort and desc only
iDataSort and desc only
![tbone](https://secure.gravatar.com/avatar/1c38e4b0c87c8caec09fe6a441f3e35c/?default=https%3A%2F%2Fvanillicon.com%2F1c38e4b0c87c8caec09fe6a441f3e35c_200.png&rating=g&size=120)
I have 3 columns of data.
John 92 A+
Johnny 90 A+
Big John 89 A
John JR 65 C-
Little John 60 C-
The 2nd column must be hidden, and the 3rd column is sorted by the 2nd column, but I can't seem to find a way to make the sort desc only.
I'm looking for something like: { 'iDataSort': 1, [desc] }
I saw a plugin, but this approach seems like overkill given I have a numerical column by which the sort is happening. Also, a custom sort by the 3rd column doesn't work because the score covers a wide range of numbers.
Is there an easy way to do this that I've missed?
Answers
I found the answer to my own question:
{ 'iDataSort': 1, "asSorting": [ "desc" ] }