Open
Description
Feature Description
As we have a globally db.SearchOrderBy
for sorting, in some places we still using xorm.Session.Asc(col_name)
and xorm.Session.Desc(col_name)
which may make mistakes like #25806 and hard to maintain.
I have made a simple keyword search, and found there are two places is using Asc
and Desc
directly:
- models/git/commit_status.go: func sortCommitStatusesSession
- models/issues/issue_search.go: func applySorts
Screenshots
No response