From 87efc8c6d4dbcbfb1e814091b16ae84c8564678c Mon Sep 17 00:00:00 2001 From: Jorrit Klein Bramel Date: Tue, 2 May 2017 10:34:28 +0200 Subject: Sort on repo size in admin panel (#1654) * fix #1653 sort on repo size * fix minor mistake in en-us locale --- routers/home.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'routers/home.go') diff --git a/routers/home.go b/routers/home.go index 9fa565b217..c02bd813fa 100644 --- a/routers/home.go +++ b/routers/home.go @@ -94,6 +94,10 @@ func RenderRepoSearch(ctx *context.Context, opts *RepoSearchOptions) { orderBy = "name DESC" case "alphabetically": orderBy = "name ASC" + case "reversesize": + orderBy = "size DESC" + case "size": + orderBy = "size ASC" default: orderBy = "created_unix DESC" } -- cgit v1.2.3