Universal sorting system, going back to CTS 2, and rewriting