Custom sorting for mm/dd/yyyy hh:mm am/pm format
Custom sorting for mm/dd/yyyy hh:mm am/pm format
Can anyone post custom sorting for mm/dd/yyyy hh:mm am/pm format? I am writing the custom code and its working for Ascending and not working for Decending.
My custom 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("
My custom 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.