2 ms·
Is this not a standard sorting algorithm? If I'm not mistaken this is my coworkers go to sort when writing custom sorts.
by donatj 4y ago
Is this not a standard sorting algorithm? If I'm not mistaken this is my coworkers go to sort when writing custom sorts.
- Jtsummers 4y agoIt manages to be more inefficient than most, and will even disorder and then reorder an already sorted input. Bubble sort (a very low bar to beat) doesn't even do that. If you've only got a small number of items, it doesn't matter unless you're sorting a small number of items a large number of times.