summaryrefslogtreecommitdiffstats
path: root/routers/admin
diff options
context:
space:
mode:
authorBwko <bouwko@gmail.com>2016-12-24 15:42:26 +0100
committerLunny Xiao <xiaolunwen@gmail.com>2016-12-24 22:42:26 +0800
commitfa3abc22c06843bb27089e8c0f7aebf0f5d83fcc (patch)
treef7763df24980f419698ea75f4cd2d080784a62d2 /routers/admin
parentc1e92eeb72fe92cc30c80985e5e2b970f4735067 (diff)
downloadgitea-fa3abc22c06843bb27089e8c0f7aebf0f5d83fcc.tar.gz
gitea-fa3abc22c06843bb27089e8c0f7aebf0f5d83fcc.zip
Added sorting to organizations, repos & users page (#222)
Diffstat (limited to 'routers/admin')
-rw-r--r--routers/admin/orgs.go1
-rw-r--r--routers/admin/repos.go1
-rw-r--r--routers/admin/users.go1
3 files changed, 0 insertions, 3 deletions
diff --git a/routers/admin/orgs.go b/routers/admin/orgs.go
index 88d88d1c05..eeb9002bc2 100644
--- a/routers/admin/orgs.go
+++ b/routers/admin/orgs.go
@@ -27,7 +27,6 @@ func Organizations(ctx *context.Context) {
Counter: models.CountOrganizations,
Ranger: models.Organizations,
PageSize: setting.UI.Admin.OrgPagingNum,
- OrderBy: "id ASC",
TplName: tplOrgs,
})
}
diff --git a/routers/admin/repos.go b/routers/admin/repos.go
index 86a9ea9405..f2f402db76 100644
--- a/routers/admin/repos.go
+++ b/routers/admin/repos.go
@@ -28,7 +28,6 @@ func Repos(ctx *context.Context) {
Ranger: models.Repositories,
Private: true,
PageSize: setting.UI.Admin.RepoPagingNum,
- OrderBy: "owner_id ASC, name ASC, id ASC",
TplName: tplRepos,
})
}
diff --git a/routers/admin/users.go b/routers/admin/users.go
index fa61a46938..782012d95d 100644
--- a/routers/admin/users.go
+++ b/routers/admin/users.go
@@ -35,7 +35,6 @@ func Users(ctx *context.Context) {
Counter: models.CountUsers,
Ranger: models.Users,
PageSize: setting.UI.Admin.UserPagingNum,
- OrderBy: "id ASC",
TplName: tplUsers,
})
}