π§ Merge SortWhen two cards tie, I always take the one from the LEFT run first. That single rule is the entire reason I never scramble same-numbered cards.
π² Quick SortI swap cards by position to build the partition, with no regard for which arrived first. Same numbers can and will land in a different color order.
Pick a level above to begin.