Why are you removing all this?
This not just sorting stuff but also filtering when you select certain ordering.