Posted by atan2 12/10/2025
[1] https://github.com/thomasmueller/bau-lang/blob/main/src/test...
https://en.wikipedia.org/wiki/Shellsort
Shellsort can be regarded as an improvement over either Bubble Sort or Insertion Sort.
You can also do something like a calendar queue with bubble sort for each bin.
And while I've never hit a case I would think it would have merit with data known to be pretty close to properly sorted.
When I was playing The Farmer Was Replaced and needed to implement sorting, I just wrote a bubble sort. Worked first time.