From: Petr Vorel <pvorel@suse.cz>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH v2 4/5] docparse: Sort alphabetically tags in table
Date: Thu, 13 May 2021 20:17:35 +0200 [thread overview]
Message-ID: <YJ1tP1wcMUoXgYBx@pevik> (raw)
In-Reply-To: <20210504190240.24250-5-pvorel@suse.cz>
> Signed-off-by: Petr Vorel <pvorel@suse.cz>
> ---
> docparse/testinfo.pl | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
> diff --git a/docparse/testinfo.pl b/docparse/testinfo.pl
> index 2aeee1a17..857278ac8 100755
> --- a/docparse/testinfo.pl
> +++ b/docparse/testinfo.pl
> @@ -424,8 +424,9 @@ sub content_all_tests
> $tmp2 = undef;
> my %commits;
> + my @sorted_tags = sort { $a->[0] cmp $b->[0] } @{$json->{'tests'}{$name}{tags}};
Hm, this introduced bug on older perl. I'll send a fix for it.
Kind regards,
Petr
> - for my $tag (@{$json->{'tests'}{$name}{tags}}) {
> + for my $tag (@sorted_tags) {
> if (!defined($tmp2)) {
> $content .= table . "|Tags|Info\n"
> }
next prev parent reply other threads:[~2021-05-13 18:17 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-04 19:02 [LTP] [PATCH v2 0/5] docparser formatting improvements Petr Vorel
2021-05-04 19:02 ` [LTP] [PATCH v2 1/5] docparse: Move CVE and git link into Info column Petr Vorel
2021-05-07 14:28 ` Cyril Hrubis
2021-05-04 19:02 ` [LTP] [PATCH v2 2/5] docparse: Filter .tags by key Petr Vorel
2021-05-07 15:01 ` Cyril Hrubis
2021-05-04 19:02 ` [LTP] [PATCH v2 3/5] docparse: Make tags in table clickable Petr Vorel
2021-05-04 19:02 ` [LTP] [PATCH v2 4/5] docparse: Sort alphabetically tags in table Petr Vorel
2021-05-13 18:17 ` Petr Vorel [this message]
2021-05-04 19:02 ` [LTP] [PATCH v2 5/5] docparse: Fix headers Petr Vorel
2021-05-10 17:38 ` [LTP] [PATCH v2 0/5] docparser formatting improvements Petr Vorel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YJ1tP1wcMUoXgYBx@pevik \
--to=pvorel@suse.cz \
--cc=ltp@lists.linux.it \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox