diff options
author | Keuin <[email protected]> | 2023-10-23 02:52:42 +0800 |
---|---|---|
committer | Keuin <[email protected]> | 2023-10-23 02:52:42 +0800 |
commit | f4296321542128163fa38be56c272c008f3d602f (patch) | |
tree | 9e08b1a7b7dc83ff5a63d3b677796407153c9386 /src/main/java/com | |
parent | 8a3f624d7a6f4b4c58b8204de7459b5fdeb5fce1 (diff) |
bugfix: query result not ordered
Diffstat (limited to 'src/main/java/com')
-rw-r--r-- | src/main/java/com/keuin/blame/lookup/QueryExecutor.java | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |