Hacker News new | ask | show | jobs
by dmbaggett 1299 days ago
Your intuition is correct. However, in the context of an O(N^2) comparison sort you can implement a tie-breaker check that at least ensures order stability between frames.