Multi Sort before & after search
Multi Sort before & after search
Hi,
Great plugin, Does everything that i need but i can not figure out how to sort 2 columns so on sort 1, column 2 remains sorted.
At the moment column 1 is sorted good but need to sort column 2 as well.
Below is what i have on load.
A - Thursday
A - Monday
A - Friday
B - Wednesday
B - Monday
What i need is:
A - Monday
A - Thursday
A - Friday
B - Monday
B - Wednesday.
Also when i search A i get below.
A - Thursday
A - Monday
A - Friday
What i need is
A - Monday
A - Thursday
A - Friday
Is this even possible using DataTables? Just need a little bit info & i will figure out the rest.
Thanks in advance.
Answers
You can use the
order
to set multiple column ordering on initialization. Or you can use theorder()
API to set the ordering for multiple columns.Kevin