Looks like PowerPC603's suggestion removes the need to do a sort at all :-)
However, all programmers should learn to sort - it's a law of coding or something !!
There are some sort routines in the codearcs...
Skidracer's bubblesort works on types
TFT's Quicksort is based on an array
Since you only have 4 wheels to deal with, a quick and dirty routine should be easy enough to code up...
However, all programmers should learn to sort - it's a law of coding or something !!
There are some sort routines in the codearcs...
Skidracer's bubblesort works on types
TFT's Quicksort is based on an array
Since you only have 4 wheels to deal with, a quick and dirty routine should be easy enough to code up...