So close!

Quick sort almost works.  It has some unknown quirk when sorting where
not every term is sorted, though most are. In addition, it has some
visual issues.