docs: use predictable ordering in generated documentation

When the seq number is equal, sort by the title to get predictable
output ordering. This is useful for reproducible builds.

Signed-off-by: Maximilian Engelhardt <maxi@daemonizer.de>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
This commit is contained in:
Maximilian Engelhardt authored and Andrew Cooper committed 2020-12-22 13:36:58 +00:00
1 parent d4f699a0df
commit e18dadc5b7
1 file changed
+1 -1
+1 -1
View File
@@ -331,7 +331,7 @@ sub output_index () {
<h2>Starting points</h2> <h2>Starting points</h2>
<ul> <ul>
END END
foreach my $ic (sort { $a->{Seq} <=> $b->{Seq} } @incontents) { foreach my $ic (sort { $a->{Seq} <=> $b->{Seq} or $a->{Title} cmp $b->{Title} } @incontents) {
$o .= "<li><a href=\"$ic->{Href}\">$ic->{Title}</a></li>\n"; $o .= "<li><a href=\"$ic->{Href}\">$ic->{Title}</a></li>\n";
} }
$o .= "</ul>\n"; $o .= "</ul>\n";
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.