Ranking documents in sections