Skip to content

Commit d410e2a

Browse files
authored
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
1 parent 216c8ea commit d410e2a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

routers/web/explore/repo.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@ func RenderRepoSearch(ctx *context.Context, opts *RepoSearchOptions) {
7171
case "leastupdate":
7272
orderBy = db.SearchOrderByLeastUpdated
7373
case "reversealphabetically":
74-
orderBy = db.SearchOrderByAlphabeticallyReverse
74+
orderBy = "owner_name DESC, name DESC"
7575
case "alphabetically":
76-
orderBy = db.SearchOrderByAlphabetically
76+
orderBy = "owner_name ASC, name ASC"
7777
case "reversesize":
7878
orderBy = db.SearchOrderBySizeReverse
7979
case "size":

0 commit comments

Comments
 (0)