Revert "fix sorting"

This reverts commit 7fa2fd932ab7b5f0cb79f62cdedb8d051b2d2e37.