custom sorting not working in decending order

custom sorting not working in decending order

peteryuvipeteryuvi Posts: 2Questions: 0Answers: 0
edited March 2013 in General
Hi All!

I am using DataTables and the issue I am having is for my date columns I am using mm/dd/yyyy hh:mm am/pm format and when I click on date column to sort, DataTables changes have correctly working for ascending order and not not for decending order. Is there some code I can put in to correct this issue?

I am writing custom sorting for ascending and decending.Can any one help to correct my code in decending sort?

My code:
jQuery.fn.dataTableExt.oSort['NUMasset-asc'] = function(a,b) {
var aSplit = a.substring(a.indexOf(">")+1,a.lastIndexOf("")+1,b.lastIndexOf("")+1,a.lastIndexOf("")+1,b.lastIndexOf("
This discussion has been closed.