public MultiVersionedKeyQuery<K, V> withAscendingTimestamps() {
        return new MultiVersionedKeyQuery<>(key, fromTime, toTime, ResultOrder.ASCENDING);
    }
Specifies the order of the returned records by the query as ascending by timestamp.
streams/src/main/java/org/apache/kafka/streams/query/MultiVersionedKeyQuery.java