Hi there,
why does the sort function not sort out numeric values depending on their values(large to small or small to large)?
var drinks1 = [40,30,10,20,100];
println(drinks1.sort()); // this will give you 10, 100, 20, 30, 40
it sorts those values as follows: 10,100,20,30,40
Is there a way of changing the order that the function works in?