As the subject states, what would be the easiest way to sort an float array[3]?
Printable View
As the subject states, what would be the easiest way to sort an float array[3]?
Z.Code:#include <algorithm>
...
std::sort(&array[0], &array[3]); // note, one beyond end of array
Thanks, Z. :)