aboutsummaryrefslogtreecommitdiffstats
path: root/routers/home.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/home.go')
-rw-r--r--routers/home.go4
1 files changed, 4 insertions, 0 deletions
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"
}