Horse Racing:
Imagine, if you will, a set of variables assigned to each selections index...
Eg:
Selection Index 1 = myvar1
Selection Index 2 = myvar2
Selection Index 3 = myvar3 ... etc etc
Now, we are setting these variables and updating them over time.
so myvar1,myvar2 and myvar3 and all the myvar's are being updated every second with a new value, a 'score' if you like... for how likely they are to win/lose.
After a set amount of time, how can I then 'sort' that list of myvars and, for example, dutch back the top half?
For example...
After X seconds has passed...
I have arrived at..
myvar1 = 1.2
myvar2 = 1.5
myvar3 = -3
myvar4 = 20
myvar5 = 3.2
myvar6 = -4
I then MUST Dutch Back the top half...
I want to Dutch Back
(myvar4 = 20,myvar5 = 3.2,myvar2 = 1.5)
How can I tell what I need to dutch back... how can I write the selection?