Quantcast
Channel: Free community support — DataTables forums
Viewing all articles
Browse latest Browse all 35273

Multi Column Sorting with one column Static ordered desc

$
0
0

I am tryng to figure out how to do multi column sorting but keep one column locked to Descending

like:
if col1 is a date column and col2 name column and has many of the same names i want it to order by Name but also order by date descending always

EXAMPLE of what i am looking for:

onload: order by date desc

date name
1/2/13 Bob
1/14/13 Nick
4/14/13 Bob
5/14/13 Nick

on name sort order by Name asc

Date Name
1/2/13 Bob
4/14/13 Bob
1/14/13 Nick
5/14/13 Nick

on name sort order by Name Desc

Date Name
1/14/13 Nick
5/14/13 Nick
1/2/13 Bob
5/14/13 Bob


Viewing all articles
Browse latest Browse all 35273

Trending Articles