make undirected pair comparable