]> source.dussan.org Git - gitea.git/commitdiff
Repository explore alphabetically order respect owner name (#30882)
author6543 <6543@obermui.de>
Tue, 7 May 2024 16:35:02 +0000 (18:35 +0200)
committerGitHub <noreply@github.com>
Tue, 7 May 2024 16:35:02 +0000 (16:35 +0000)
similar to #30784 but only for the repo explore page

is covered by #30876 for the main branch

routers/web/explore/repo.go

index 66477a255cccc59c9be33d30638ba753bc77a873..764c226d40ba0d8719e1014e24c090abe73b9773 100644 (file)
@@ -71,9 +71,9 @@ func RenderRepoSearch(ctx *context.Context, opts *RepoSearchOptions) {
        case "leastupdate":
                orderBy = db.SearchOrderByLeastUpdated
        case "reversealphabetically":
-               orderBy = db.SearchOrderByAlphabeticallyReverse
+               orderBy = "owner_name DESC, name DESC"
        case "alphabetically":
-               orderBy = db.SearchOrderByAlphabetically
+               orderBy = "owner_name ASC, name ASC"
        case "reversesize":
                orderBy = db.SearchOrderBySizeReverse
        case "size":