From d71c0c725d7b5ddfc5b788d328a5fc7a27739662 Mon Sep 17 00:00:00 2001 From: Benjamin Close Date: Tue, 25 Nov 2008 06:25:35 -0800 Subject: Add support for sorting by Age in the repolist Signed-off-by: Lars Hjemli --- cgit.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cgit.c') diff --git a/cgit.c b/cgit.c index c82587b..e09c86e 100644 --- a/cgit.c +++ b/cgit.c @@ -154,6 +154,8 @@ static void querystring_cb(const char *name, const char *value) ctx.qry.name = xstrdup(value); } else if (!strcmp(name, "mimetype")) { ctx.qry.mimetype = xstrdup(value); + } else if (!strcmp(name, "s")){ + ctx.qry.sort = xstrdup(value); } } -- cgit v1.2.3-59-g8ed1b