Ordering organizations and users by name

This commit is contained in:
Thibault Meyer 2016-11-10 09:10:35 +01:00
parent 145648a233
commit 3a10a0c1ca
No known key found for this signature in database
GPG key ID: BE39A108C4DDA755
4 changed files with 41 additions and 21 deletions

View file

@ -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,
})
}

View file

@ -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,
})
}