Sorting Float Array Numerically?

foreach loop through your struct array, rip out the integers into a new array, sort that array just like the example above, but every time you move an element from the old integer array into the new integer array, you should also move the corresponding element from your old struct array into the new struct array.