Handle unordered pieces properly.