Quantcast
Channel: DataTables 1.10 — DataTables forums
Viewing all articles
Browse latest Browse all 2364

Sort numbers high-to-low on the first click

$
0
0

By default, when you sort a table via a column with numbers, the first click makes the table sort low-to-high, and the next click makes it go high-to-low.
How can I make the sortorder go from high to low in a certain column after the first click on its <th>?

(Story behind the question is that we are mighty proud of the rows with high numbers, so we want them to appear first.
And I am sure that this question has been asked and answered here before, but I must have been using the wrong search terms. Thanks for any help!)


Viewing all articles
Browse latest Browse all 2364

Trending Articles