A second key such as id can decide rows with equal quantities.
qty then id
Quantity then id
The compiler uses 2 sort columns and leaves 0 unresolved tie groups.
unresolved ties=0
Multi-column sorting examples are tiny finite table transforms; SQL dialect completeness, collation rules, optimizer behavior, indexing, product behavior, and performance claims are out of scope.
Tie breaker is explicit
The id key is visible in the ORDER BY table.
id tie breaker
Summary
A tie breaker turns source-order convention into an authored rule.