NaN sorts unpredictably

Code reviewHard20 minGoogle style

Your task

Review this Java that sorts search results by a computed relevance score (descending) before paginating.