private void ensureSorted() {
        if ( ! orderedHits && ! hitsSorted && (sortableWithSortData() || likelyHitsHaveCorrectValueForSortFields())) {
            sort();
        }
    }
Called before hit lists or positions are used
container-search/src/main/java/com/yahoo/search/result/HitGroup.java