mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
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:
1 parent
d4f699a0df
commit
e18dadc5b7
1 file changed
+1
-1
+1
-1
@@ -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";
|
||||||
|
|||||||