1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-09 20:17:21 +00:00

Add alphabetical project sorting (#33504)

Fixes #33500
This commit is contained in:
John Smith
2025-02-06 03:09:43 +08:00
committed by GitHub
parent fa0c8ae50f
commit a025fa70ab
2 changed files with 6 additions and 0 deletions

View File

@ -244,6 +244,10 @@ func GetSearchOrderByBySortType(sortType string) db.SearchOrderBy {
return db.SearchOrderByRecentUpdated
case "leastupdate":
return db.SearchOrderByLeastUpdated
case "alphabetically":
return "title ASC"
case "reversealphabetically":
return "title DESC"
default:
return db.SearchOrderByNewest
}