Sort the set before asserting