]> git.cameronkatri.com Git - cgit.git/blobdiff - cgit.c
ui-repolist: sort null values last
[cgit.git] / cgit.c
diff --git a/cgit.c b/cgit.c
index c82587b68b8cc5169f4265eaad98fbc938aa0b8e..e09c86eaae248ead1fbcca8ee51224b98ccf94af 100644 (file)
--- 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);
        }
 }