I tried below example but now working with correct information.
var fruits = [110.111, 1245.22222, 2.458, 0.001]; fruits.sort(); document.write(fruits);
You can use a custom sort function like this:
fruits.sort(function (a,b) {return a - b;});
Array.sort() method treats numbers as strings, and orders members in ASCII order.
Array.sort()