Also ignore case, since otherwise a version sort would collate 'Z'
before 'a'. We don't need LC_COLLATE anymore.
Version sort has some issues for our purpose: underscores and dashes
have special (and different) meaning. We want to ignore underscores or
dashes that aren't next to digits, so that _exit(2) remains next to
exit(2). However, we want to keep them next to digits, such as in
iso-8859-1(7), to keep the right order for pages with numbers. For
that, we need some extra sed(1) magic.
Reported-by: Brian Inglis <Brian.Inglis@Shaw.ca> Cc: Deri James <deri@chuzzlewit.myzen.co.uk> Signed-off-by: Alejandro Colomar <alx@kernel.org>