plugins/bootstrap/datatable.js
function getDefaultSorter(colName) {
		return function(a, b, dir){

			var 
				firstRec = dir == 'asc' ? a : b,
				secondRec = dir == 'asc' ? b : a,

				fA = firstRec[colName].toLowerCase(),
				fB = secondRec[colName].toLowerCase();

			// Handle numbers
			if (fA<fB) return -1
			if (fA>fB) return +1
			return 0
		};
	}
function getDefaultSorter(colName) {
		return function(a, b, dir){

			var 
				firstRec = dir == 'asc' ? a : b,
				secondRec = dir == 'asc' ? b : a,

				fA = firstRec[colName].toLowerCase(),
				fB = secondRec[colName].toLowerCase();

			// Handle numbers
			if (fA<fB) return -1
			if (fA>fB) return +1
			return 0
		};
	}
function getDefaultSorter ( colName ) { return function ( a , b , dir ) { var firstRec = dir == 'asc' ? a : b , secondRec = dir == 'asc' ? b : a , fA = firstRec [ colName ] . toLowerCase ( ) , fB = secondRec [ colName ] . toLowerCase ( ) ; // Handle numbers if ( fA < fB ) return - 1 if ( fA > fB ) return + 1 return 0 } ; }
Gets the default column sorter
Gets the default column sorter