default List<SelectedRecord> sortMetricsDebuggable(final TopNCondition condition,
                                                       final String valueColumnName,
                                                       final Duration duration,
                                                       final List<KeyValue> additionalConditions) throws IOException {
        DebuggingTraceContext traceContext = DebuggingTraceContext.TRACE_CONTEXT.get();
        DebuggingSpan span = null;
        try {
            if (traceContext != null) {
                span = traceContext.createSpan("Query Dao: sortMetrics");
                span.setMsg("Condition: TopNCondition: " + condition + ", ValueColumnName: " + valueColumnName + ", Duration: " + duration + ", AdditionalConditions: " + additionalConditions);
            }
            return sortMetrics(condition, valueColumnName, duration, additionalConditions);
        } finally {
            if (traceContext != null && span != null) {
                traceContext.stopSpan(span);
            }
        }
    }
Query ordered list, based on storage side aggregation. Most storage supports `groupby`/`aggregation` query.

@since 8.0.0
oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/storage/query/IAggregationQueryDAO.java