fixed pair sorting, reusing pair list in other views