test: clearer pair sorting