Fix 'Location' sort order for annotations
1398661 extracted the code for getting a location from an annotation into a separate module. However that function expects an Annotation but the sort predicate function was being passed a Thread. Consequently the predicate function was returning Number.POSITIVE_INFINITY for every thread and so sort ordering fell back to the default 'tie-breaker' comparator - which is the original index of the element in the list being sorted. Fixes #3106
Showing
Please register or sign in to comment