Concept Flow - ORDER BY multiple columns
Start Query
Fetch Rows
Sort by 1st Column
If tie in 1st Column
Yes
Sort by 2nd Column
Return Sorted Rows
End
The database fetches rows, sorts them first by the first column, then if there are ties, sorts those tied rows by the second column, and returns the sorted result.