Adding default value for sorted - fails otherwise