function arrSort(a,b)
	{
		var acomp = a['name'].toString(10);
		var bcomp = b['name'].toString(10);
		if (!isNaN(Number(acomp)))
		{
			acomp = Number(acomp);
		}
		if (!isNaN(Number(bcomp)))
		{
			bcomp = Number(bcomp);
		}
		if (acomp < bcomp)
		{
			return -1;
		}
		if (acomp > bcomp)
		{
			return 1;
		}
		return 0;
	}
function arrSort(a,b)
	{
		var acomp = a['name'].toString(10);
		var bcomp = b['name'].toString(10);
		if (!isNaN(Number(acomp)))
		{
			acomp = Number(acomp);
		}
		if (!isNaN(Number(bcomp)))
		{
			bcomp = Number(bcomp);
		}
		if (acomp < bcomp)
		{
			return -1;
		}
		if (acomp > bcomp)
		{
			return 1;
		}
		return 0;
	}
function arrSort ( a , b ) { var acomp = a [ 'name' ] . toString ( 10 ) ; var bcomp = b [ 'name' ] . toString ( 10 ) ; if ( ! isNaN ( Number ( acomp ) ) ) { acomp = Number ( acomp ) ; } if ( ! isNaN ( Number ( bcomp ) ) ) { bcomp = Number ( bcomp ) ; } if ( acomp < bcomp ) { return - 1 ; } if ( acomp > bcomp ) { return 1 ; } return 0 ; }
Function to help sort the arrays
Function to help sort the arrays