• Robert Knight's avatar
    Fix 'Location' sort order for annotations · 0a69ccd0
    Robert Knight authored
    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
    0a69ccd0
polyfills.js 526 Bytes