dist/objectsort.js
function Compare(left, right, columns, order)
{
	//Compare all
	for(var i = 0; i < columns.length; i++)
	{
		//Check if que difference is numeric
		var numeric = !isNaN(+left[columns[i]] - +right[columns[i]]);

		//Get the values
		var a = (numeric === true) ? +left[columns[i]] : left[columns[i]].toLowerCase();
		var b = (numeric === true) ? +right[columns[i]] : right[columns[i]].toLowerCase();

		//Check the values
		if(a < b)
		{
			//Check the order
			return (order[i] === 'ASC') ? -1 : 1;
		}
		else if(a > b)
		{
			//Check the order
			return (order[i] === 'ASC') ? 1 : -1;
		}
	}

	//Default, return 0
	return 0;
}
function Compare(left, right, columns, order)
{
	//Compare all
	for(var i = 0; i < columns.length; i++)
	{
		//Check if que difference is numeric
		var numeric = !isNaN(+left[columns[i]] - +right[columns[i]]);

		//Get the values
		var a = (numeric === true) ? +left[columns[i]] : left[columns[i]].toLowerCase();
		var b = (numeric === true) ? +right[columns[i]] : right[columns[i]].toLowerCase();

		//Check the values
		if(a < b)
		{
			//Check the order
			return (order[i] === 'ASC') ? -1 : 1;
		}
		else if(a > b)
		{
			//Check the order
			return (order[i] === 'ASC') ? 1 : -1;
		}
	}

	//Default, return 0
	return 0;
}
function Compare ( left , right , columns , order ) { //Compare all
 for ( var i = 0 ; i < columns . length ; i ++ ) { //Check if que difference is numeric
 var numeric = ! isNaN ( + left [ columns [ i ] ] - + right [ columns [ i ] ] ) ; //Get the values
 var a = ( numeric === true ) ? + left [ columns [ i ] ] : left [ columns [ i ] ] . toLowerCase ( ) ; var b = ( numeric === true ) ? + right [ columns [ i ] ] : right [ columns [ i ] ] . toLowerCase ( ) ; //Check the values
 if ( a < b ) { //Check the order
 return ( order [ i ] === 'ASC' ) ? - 1 : 1 ; } else if ( a > b ) { //Check the order
 return ( order [ i ] === 'ASC' ) ? 1 : - 1 ; } } //Default, return 0
 return 0 ; }
Function for compare two elements
Function for compare two elements