Skip to content

Commit

Permalink
Fix sort bug on repository issues list (go-gitea#28897)
Browse files Browse the repository at this point in the history
  • Loading branch information
lunny authored and silverwind committed Feb 20, 2024
1 parent 57d516b commit 6d56b8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/indexer/issues/db/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,15 @@ 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"
case internal.SortByUpdatedDesc:
sortType = "recentupdate"
case internal.SortByCommentsDesc:
sortType = "mostcomment"
case internal.SortByDeadlineDesc:
case internal.SortByDeadlineAsc:
sortType = "nearduedate"
default:
sortType = "newest"
Expand Down

0 comments on commit 6d56b8f

Please sign in to comment.