How to make datatable sort by specifying several nested columns?

I have found a snippet with 2 columns, "date and time" bellow:
if(a.loggerdate == b.loggerdate)
return(a.loggertime > b.loggertime)?1:-1;
return(a.loggerdate > b.loggerdate)?1:-1;

Sorry but I was not able to derive the code to support more than 2 columns inside columns. Can someone point to avaialble snippet please?


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion