FEATURE REQUEST: order option [index, 'asc'|'desc'] should allow any column selector, not just index
FEATURE REQUEST: order option [index, 'asc'|'desc'] should allow any column selector, not just index
louking
Posts: 259Questions: 52Answers: 0
In particular, would like to see {string}:name selector allowed. Alternatively, allow 'order' option directly under the columns option, with 'asc', 'desc' as value (assume current index).
I've removed a hidden column from my home-grown underlying framework, and this has broken all of the datatable options which have order option based on index.
This discussion has been closed.
Replies
DataTables allows initial ordering by any permutation of columns.
https://datatables.net/reference/option/order
Unless I'm misunderstanding the question....
Yes, misunderstanding, I think. In the example
would like to be something like
instead
Yup - good request. It is something that is on my radar already, so good to know that this would be useful.
Allan