1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-27 13:39:19 -05: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

(cherry picked from commit d410e2acce22e5b3518a9bf64a9152b32a91fe18)
This commit is contained in:
6543 2024-05-07 18:35:02 +02:00 committed by Earl Warren
parent e5f9482745
commit 99bd29f02f
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00

View file

@ -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":