Multi Sort before & after search

Multi Sort before & after search

babsbabs Posts: 1Questions: 1Answers: 0

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

  • kthorngrenkthorngren Posts: 20,250Questions: 26Answers: 4,761

    You can use the order to set multiple column ordering on initialization. Or you can use the order() API to set the ordering for multiple columns.

    Kevin

This discussion has been closed.