aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2024-01-23 09:17:42 +0800
committerGitHub <noreply@github.com>2024-01-23 09:17:42 +0800
commitc4cdebacfeeecac259273f3ff62c0139131ba490 (patch)
tree4854756baadb444d0699afc919fd4deaff63adca
parent4abd63d3784ab5e374b9efcf16a7b20a951f00dc (diff)
downloadgitea-c4cdebacfeeecac259273f3ff62c0139131ba490.tar.gz
gitea-c4cdebacfeeecac259273f3ff62c0139131ba490.zip
Fix sort bug on repository issues list (#28897)
Fix #28896
-rw-r--r--modules/indexer/issues/db/options.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/indexer/issues/db/options.go b/modules/indexer/issues/db/options.go
index b827a24589..5406715bbc 100644
--- a/modules/indexer/issues/db/options.go
+++ b/modules/indexer/issues/db/options.go
@@ -38,7 +38,7 @@ func ToDBOptions(ctx context.Context, options *internal.SearchOptions) (*issue_m
sortType = "leastupdate"
case internal.SortByCommentsAsc:
sortType = "leastcomment"
- case internal.SortByDeadlineAsc:
+ case internal.SortByDeadlineDesc:
sortType = "farduedate"
case internal.SortByCreatedDesc:
sortType = "newest"
@@ -46,7 +46,7 @@ func ToDBOptions(ctx context.Context, options *internal.SearchOptions) (*issue_m
sortType = "recentupdate"
case internal.SortByCommentsDesc:
sortType = "mostcomment"
- case internal.SortByDeadlineDesc:
+ case internal.SortByDeadlineAsc:
sortType = "nearduedate"
default:
sortType = "newest"