Revert "Sorting a Three-Valued Sequence"

This reverts commit 861cb0da6ee90d214c1b465c0045cd0f046e3a3a.