Sort result pages first by section number, then by name.
authorschwarze <schwarze@openbsd.org>
Thu, 24 Jul 2014 20:30:38 +0000 (20:30 +0000)
committerschwarze <schwarze@openbsd.org>
Thu, 24 Jul 2014 20:30:38 +0000 (20:30 +0000)
commit923fed8aa9a44ce109722816b3ea0749ba63cf56
treef8364b026f61ca5fbdcbf51b4f843022ee886f81
parentad97b629e332765770ee52299b07be9a108d5fe2
Sort result pages first by section number, then by name.
By moving the sort from cgi.c to mansearch.c, we get two advantages:
Easier access to the data needed for sorting, in particular the section
number, and the apropos(1) command line utility profits as well.

Feature requested by deraadt@.
usr.bin/mandoc/cgi.c
usr.bin/mandoc/mansearch.c
usr.bin/mandoc/mansearch.h