In javascript, if we declare an array and sort it, it doesn't sort it as numbers, it always perform sort like strings.
for e.g
Code:
var array1={1,33,4,56,7,99,9};
array1.sort();
document.write(array1);
this wont return the correct result. how to perform a number sort.