Test invalid input command for sort