diff options
author | Thibault Meyer <meyer.thibault@gmail.com> | 2016-11-10 09:10:35 +0100 |
---|---|---|
committer | Thibault Meyer <meyer.thibault@gmail.com> | 2016-11-10 09:18:54 +0100 |
commit | 3a10a0c1ca4915db6323836fcc47e92500232714 (patch) | |
tree | efdf44a7b7d5461f9795dc76bd0150bcc788bee7 /routers | |
parent | 145648a2334ea4583cb51f2e95df2df366b17416 (diff) | |
download | gitea-3a10a0c1ca4915db6323836fcc47e92500232714.tar.gz gitea-3a10a0c1ca4915db6323836fcc47e92500232714.zip |
Ordering organizations and users by name
Diffstat (limited to 'routers')
-rw-r--r-- | routers/admin/repos.go | 2 | ||||
-rw-r--r-- | routers/home.go | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/routers/admin/repos.go b/routers/admin/repos.go index 2c32070ed3..d19b01c4cb 100644 --- a/routers/admin/repos.go +++ b/routers/admin/repos.go @@ -27,7 +27,7 @@ func Repos(ctx *context.Context) { Ranger: models.Repositories, Private: true, PageSize: setting.UI.Admin.RepoPagingNum, - OrderBy: "id ASC", + OrderBy: "owner_id ASC, name ASC, id ASC", TplName: REPOS, }) } diff --git a/routers/home.go b/routers/home.go index 2dd223b748..071a870cf3 100644 --- a/routers/home.go +++ b/routers/home.go @@ -176,7 +176,7 @@ func ExploreUsers(ctx *context.Context) { Counter: models.CountUsers, Ranger: models.Users, PageSize: setting.UI.ExplorePagingNum, - OrderBy: "updated_unix DESC", + OrderBy: "name ASC", TplName: EXPLORE_USERS, }) } @@ -191,7 +191,7 @@ func ExploreOrganizations(ctx *context.Context) { Counter: models.CountOrganizations, Ranger: models.Organizations, PageSize: setting.UI.ExplorePagingNum, - OrderBy: "updated_unix DESC", + OrderBy: "name ASC", TplName: EXPLORE_ORGANIZATIONS, }) } |