Closed jclulow closed 3 months ago
Building a PI with this right now. Will report back results.
Building a PI with this right now. Will report back results.
The sample man.cf here works. The results that are left to report will be if this build generates the same one (it should).
PI-built man.cf matches one here in example.
This PR substantially reworks the previous somewhat incomplete ordering engine. It performs a crude topological sort, using something that resembles the depth-first search algorithm if you keep the lighting turned low.
It sorts the list in the way that I think makes the most sense, given the section number rejiggery:
Critically: 8 is before 1B, but after all other subsections of 1. 3C appears first amongst subsections of 3, but not before 3 itself. 3HEAD appears right after 3SOCKET. Everything else is sorted lexicographically.
Hopefully the comments make it a bit easier to understand how to change it in future.