I have an array like this:
myArray:Array = new Array(11,2223,153,10);
I want the position of the smallest number in that array. I don’t want to resort the array.
So, in this case the answer would be 3. (The smallest number, “10” is in the 3rd spot.)
Any thoughts of how to go about this? The only thing that comes to mind is to sort the array, then find the lowest value, and then go through the array and see if the number matches.
… Any other thoughts would be appreciated.