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 define the sorting function:
fruits.sort(function(a,b) {return a>b})