private Sorting currentSorting() {
        var query = getQuery();
        if(query == null) {
            return null;
        } else {
            return query.getRanking().getSorting();
        }
    }
Returns the set of summaries for which all concrete hits recursively below this is filled.
container-search/src/main/java/com/yahoo/search/result/HitGroup.java