Skip to content

Commit b508813

Browse files
GiteaBotlunny
andauthored
Fix sort bug on repository issues list (#28897) (#28901)
Backport #28897 by @lunny Fix #28896 Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
1 parent fd1edb9 commit b508813

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/indexer/issues/db/options.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,15 @@ func ToDBOptions(ctx context.Context, options *internal.SearchOptions) (*issue_m
3838
sortType = "leastupdate"
3939
case internal.SortByCommentsAsc:
4040
sortType = "leastcomment"
41-
case internal.SortByDeadlineAsc:
41+
case internal.SortByDeadlineDesc:
4242
sortType = "farduedate"
4343
case internal.SortByCreatedDesc:
4444
sortType = "newest"
4545
case internal.SortByUpdatedDesc:
4646
sortType = "recentupdate"
4747
case internal.SortByCommentsDesc:
4848
sortType = "mostcomment"
49-
case internal.SortByDeadlineDesc:
49+
case internal.SortByDeadlineAsc:
5050
sortType = "nearduedate"
5151
default:
5252
sortType = "newest"

0 commit comments

Comments
 (0)