Ranking algorithms for documents within sections