mirror of
https://git.zx2c4.com/cgit
synced 2025-08-04 10:04:32 +02:00
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 <Jason@zx2c4.com>
This commit is contained in:
parent
521e10c884
commit
7a4e7c8ffb
4 changed files with 13 additions and 3 deletions
|
@ -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("<table summary='repository list' class='list nowrap'>");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue