what are the intended semantics of paircompare()?