Skip to content

Commit 34599d2

Browse files
committed
Add explanatory comment to 'order_by_section'
1 parent b5087de commit 34599d2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/report_generator.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@ struct order_by_section {
8888
auto operator()(lwg::issue const & x, lwg::issue const & y) const -> bool {
8989
assert(!x.tags.empty());
9090
assert(!y.tags.empty());
91+
// This sorts by the section number (e.g. 23.5.1) then by the section stable tag.
92+
// This is not redundant, because for e.g. Arrays TS the entire paper has section num 99,
93+
// so including the tag orders [arrays.ts::dynarray] before [arrays.ts::dynarray.cons].
9194
return std::tie(section_db.get()[x.tags.front()], x.tags.front()) < std::tie(section_db.get()[y.tags.front()], y.tags.front());
9295
}
9396

0 commit comments

Comments
 (0)