r/ProgrammerHumor • • Mar 16 '20

Sort algorithm

65.4k Upvotes

614 comments sorted by

View all comments

Show parent comments

259

u/T-T-N Mar 16 '20

Looks like a variant of insertion sort

271

u/elperroborrachotoo Mar 16 '20

An insertion / bogosort hybrid.

All our algorithms lack that victory dance, though.

75

u/maybeSkywalker Mar 16 '20

And are therefore not good enough

37

u/Fear-Surprise-And Mar 16 '20

We need an algorithm that sorts and then shuffles the numbers up again solitaire-win style