Pareto ordering puts larger defect counts first while keeping tied input order stable.
Largest first
Scratch has the largest count, then Dent.
Scratch, then Dent
Ties stay stable
Label and Seal are tied, so their pinned input order is kept.
tied counts keep pinned order