Concept Flow - Sorting with order()
Input vector
Call order()
Compute indices for sorted order
Use indices to reorder vector
Return sorted vector
The order() function finds the positions that would sort a vector, then we use these positions to rearrange the vector in sorted order.