calculates total score for agent and sorts by score on search page