Ensure test compares sorted lists.