How to write a Comparator when the order of elements does not matter

Printable View