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
pull/30891/head
6543 6 months ago committed by GitHub
parent 216c8eada3
commit d410e2acce
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      routers/web/explore/repo.go

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

Loading…
Cancel
Save