View Single Post
  #15  
Old 12-16-2007, 10:13 PM
Googi Googi is offline
A Serious Epidemic
Googi's Avatar
Join Date: Oct 2001
Location: Canada
Posts: 18,866
Googi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud of
Send a message via AIM to Googi
Quote:
Originally Posted by Novo View Post
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); 
__________________
Reply With Quote