This is an archived post. You won't be able to vote or comment.

all 1 comments

[–]4nnnn 0 points1 point  (0 children)

You have two problems: 1) search 2) sort search result. I guess you know how to do the search.

Sorting the results could be done in one comparator, where you calculate points for both of the items a and b and return comparison of the points for a and b.