From 7a4e7c8ffbacfad5ac83ad20426d7911c2eacdeb Mon Sep 17 00:00:00 2001 From: Tobias Bieniek Date: Tue, 9 Oct 2012 20:53:29 +0200 Subject: ui-repolist: Add "section-sort" flag to control section sorting. Flag which, when set to "1", will sort the sections on the repository listing by name. Set this flag to "0" if the order in the cgitrc file should be preserved. Default value: "1". Signed-off-by: Jason A. Donenfeld --- ui-repolist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui-repolist.c') diff --git a/ui-repolist.c b/ui-repolist.c index 36c067a..dead1bf 100644 --- a/ui-repolist.c +++ b/ui-repolist.c @@ -257,7 +257,7 @@ void cgit_print_repolist() if(ctx.qry.sort) sorted = sort_repolist(ctx.qry.sort); - else + else if (ctx.cfg.section_sort) sort_repolist("section"); html(""); -- cgit v1.2.3-59-g8ed1b