NOW sorting is working correctly! And fixed a stupid copypasta error