Bug fix: only return first 100 hints, even when the list is unfiltered.
Scope addIdDeclaration typo.
Improve performance of the compareByPos sort comparator by 1) using a binary search for the minimum distance to a given position; and 2) caching the result.