On Monday, 4 April 2016 at 09:36:19 UTC, Nordlöw wrote: > I have some C++ that does optimal sorting of 3 and 4 elements at Here's a nice presention on the topic "Sorting Networks": http://hoytech.github.io/sorting-networks/