Revert sorting changes