Hacker News new | ask | show | jobs
by harry8 1037 days ago
Bubble/selection sort with early exit can win outright on big lists if they're already almost in order. Textbook example years ago was cheque numbers which mostly are presented in order.

Know your data. (Which in this case, i don't).