diff --git a/fe/fe-core/src/main/java/org/apache/doris/qe/ShowExecutor.java b/fe/fe-core/src/main/java/org/apache/doris/qe/ShowExecutor.java index c2170f90d5716e..983a2dc7a5fa27 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/qe/ShowExecutor.java +++ b/fe/fe-core/src/main/java/org/apache/doris/qe/ShowExecutor.java @@ -1722,6 +1722,8 @@ private void handleShowRoutineLoad() throws AnalysisException { + " in db " + showRoutineLoadStmt.getDbFullName() + ". Include history? " + showRoutineLoadStmt.isIncludeHistory()); } + // sort by create time + rows.sort(Comparator.comparing(x -> x.get(2))); resultSet = new ShowResultSet(showRoutineLoadStmt.getMetaData(), rows); }