MOODLE2: Fixed linguistic SQL sorting