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);
Use Custom Function for sorting.
To sort it you need to create a comparator function taking two arguments and then call the sort function with that comparator function as follows:
fruits.sort(function(a,b) { return parseFloat(a) - parseFloat(b) } );
If you want to sort ascending change parseInt(a) - parseInt(b) and parseInt(b) - parseInt(a). Note the change from a to b.