Stability is a guarantee
A stable sort promises equal items keep their input order. That promise is what makes multi-key sorting by repeated sorts correct.
Sort least first
To order by several fields, sort by the least important first, then up to the most important. Stability carries the lower orders through the ties.