code: 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;
  	}
docs: Function to help sort the arrays