I recently learned about sorting networks, and decided to build one out of comparators and relays that would take in four voltages and sort them from lowest to highest. Here's the result, in case anyone else finds it interesting.
In this video three voltages are held constant and the fourth is a triangle wave. Lots of clicky relay goodness.