Lets say that each player has:
Bob - 5 points in 10 seconds
Mike - 10 points in 5 seconds
John - 15 points in 15 seconds
how they can be arranged according to score numbers? And then adressed by name - for further sortings ?
First I thought of putting them into array, sorting and retrivieng back by iid .
Sorts the order of elements on an axis in ascending order. Note that in multidimensional arrays this sorts based on the first element on the axis. For example sorting the X axis in a 2D array will sort the order of the columns based on the elements at Y co-ordinate 0, while preserving the contents of each column.
Does it mean that after first sorting they do not preserve corresponding times ?
thanks for help
I have seen the tut called "Asteroid clone in less than 100 events" that includes scoring, but sorry, no capx to strip what I wanted out of it.