Deal with case in gradebook sorting