Quote:
Originally Posted by Novo
Well...
PHP Code:
temp.lowest = temp.arr.sortascending()[0];
temp.indexOfLowest = temp.arr.indexOf( temp.lowest );
?!
|
Wouldn't that just set temp.indexOfLowest to 0 because you've sorted temp.arr to be in ascending order? Although you could do:
PHP Code:
temp.sortarr = temp.arr;
temp.lowest = temp.sortarr.sortascending()[0];
temp.indexOfLowest = temp.arr.indexOf(temp.lowest);