Skip to content

Commit e8d79b3

Browse files
lunnyHenry Goodman
authored and
Henry Goodman
committed
Fix sort bug on repository issues list (go-gitea#28897)
Fix go-gitea#28896
1 parent 62c9477 commit e8d79b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/indexer/issues/db/options.go

Lines changed: 2 additions & 2 deletions
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)