Rank alternatives with pairwise comparisons