mirror of
https://github.com/go-gitea/gitea
synced 2024-12-25 18:14:28 +00:00
Repository explore alphabetically order respect owner name (#30882)
similar to #30784 but only for the repo explore page is covered by #30876 for the main branch
This commit is contained in:
parent
216c8eada3
commit
d410e2acce
@ -71,9 +71,9 @@ func RenderRepoSearch(ctx *context.Context, opts *RepoSearchOptions) {
|
|||||||
case "leastupdate":
|
case "leastupdate":
|
||||||
orderBy = db.SearchOrderByLeastUpdated
|
orderBy = db.SearchOrderByLeastUpdated
|
||||||
case "reversealphabetically":
|
case "reversealphabetically":
|
||||||
orderBy = db.SearchOrderByAlphabeticallyReverse
|
orderBy = "owner_name DESC, name DESC"
|
||||||
case "alphabetically":
|
case "alphabetically":
|
||||||
orderBy = db.SearchOrderByAlphabetically
|
orderBy = "owner_name ASC, name ASC"
|
||||||
case "reversesize":
|
case "reversesize":
|
||||||
orderBy = db.SearchOrderBySizeReverse
|
orderBy = db.SearchOrderBySizeReverse
|
||||||
case "size":
|
case "size":
|
||||||
|
Loading…
Reference in New Issue
Block a user