Diff options
Diffstat (limited to 'source/ui-repolist.c')
| -rw-r--r-- | source/ui-repolist.c | 7 |
1 file changed, 6 insertions, 1 deletion
diff --git a/source/ui-repolist.c b/source/ui-repolist.c index 3eb9375..4f79f70 100644 --- a/source/ui-repolist.c +++ b/source/ui-repolist.c @@ -192,7 +192,12 @@ static int any_repos_under_url(void) */ static void print_column_header(const char *title, const char *column, const char *currenturl) { - htmlf("<th class='left col-%s' scope='col'><a href='", column); + htmlf("<th class='left col-%s' scope='col'", column); + // Idle puts the latest change first, which is the shortest idle time, + // so every column the index sorts by runs ascending. + if (ctx.qry.sort && !strcmp(ctx.qry.sort, column)) + html(" aria-sort='ascending'"); + html("><a href='"); html_attr(currenturl); htmlf("?s=%s", column); if (ctx.qry.search) { |
