Corrects sorting properties