optimize results sorting in suggestionService