From f4296321542128163fa38be56c272c008f3d602f Mon Sep 17 00:00:00 2001 From: Keuin Date: Mon, 23 Oct 2023 02:52:42 +0800 Subject: bugfix: query result not ordered --- src/main/java/com/keuin/blame/lookup/QueryExecutor.java | 1 + 1 file changed, 1 insertion(+) (limited to 'src/main/java/com/keuin/blame') diff --git a/src/main/java/com/keuin/blame/lookup/QueryExecutor.java b/src/main/java/com/keuin/blame/lookup/QueryExecutor.java index e11cdda..6e6bd5c 100644 --- a/src/main/java/com/keuin/blame/lookup/QueryExecutor.java +++ b/src/main/java/com/keuin/blame/lookup/QueryExecutor.java @@ -37,6 +37,7 @@ public class QueryExecutor { if (timeRange > 0) { sql += " and ts>=" + timeRange; } + sql += " order by ts desc"; if (maxCount > 0) { sql += " limit " + maxCount; } -- cgit v1.2.3