Have you worked through the logic on paper so you know how it is supposed to work?
Type: Posts; User: Norm
Have you worked through the logic on paper so you know how it is supposed to work?
I guess the idea would be to move the max value's index to the bottom of the list.
Where in your logic do you chose the biggest item?
Can you change that logic to chose the smallest?