Correctly order SEE ALSO entries

SEE ALSO entries are ordered first by section, then
alphabetically within section.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
diff --git a/man/find_key_by_type_and_name.3 b/man/find_key_by_type_and_name.3
index 9e6fbf8..bf7781c 100644
--- a/man/find_key_by_type_and_name.3
+++ b/man/find_key_by_type_and_name.3
@@ -59,5 +59,5 @@
 .SH SEE ALSO
 .ad l
 .nh
-.BR keyctl (3),
-.BR request_key (2)
+.BR request_key (2),
+.BR keyctl (3)
diff --git a/man/key.dns_resolver.8 b/man/key.dns_resolver.8
index 61d0c0d..8aaf68d 100644
--- a/man/key.dns_resolver.8
+++ b/man/key.dns_resolver.8
@@ -29,5 +29,5 @@
 .SH SEE ALSO
 .ad l
 .nh
-.BR request\-key (8),
-.BR request\-key.conf (5)
+.BR request\-key.conf (5),
+.BR request\-key (8)
diff --git a/man/keyctl.3 b/man/keyctl.3
index 5c54cfa..44b3478 100644
--- a/man/keyctl.3
+++ b/man/keyctl.3
@@ -99,5 +99,5 @@
 .BR add_key (2),
 .BR keyctl (2),
 .BR request_key (2),
-.BR keyutils (7),
-.BR keyrings (7)
+.BR keyrings (7),
+.BR keyutils (7)
diff --git a/man/keyctl_chown.3 b/man/keyctl_chown.3
index 0a61212..0836e25 100644
--- a/man/keyctl_chown.3
+++ b/man/keyctl_chown.3
@@ -82,5 +82,5 @@
 .BR keyctl (2),
 .BR request_key (2),
 .BR keyctl (3),
-.BR keyutils (7),
-.BR keyrings (7)
+.BR keyrings (7),
+.BR keyutils (7)
diff --git a/man/keyctl_clear.3 b/man/keyctl_clear.3
index 5d258df..2b6bfa1 100644
--- a/man/keyctl_clear.3
+++ b/man/keyctl_clear.3
@@ -67,6 +67,6 @@
 .BR keyctl (2),
 .BR request_key (2),
 .BR keyctl (3),
-.BR keyutils (7),
-.BR keyrings (7)
+.BR keyrings (7),
+.BR keyutils (7)
 
diff --git a/man/keyctl_describe.3 b/man/keyctl_describe.3
index 5cf5c77..5e4881e 100644
--- a/man/keyctl_describe.3
+++ b/man/keyctl_describe.3
@@ -104,5 +104,5 @@
 .BR keyctl (2),
 .BR request_key (2),
 .BR keyctl (3),
-.BR keyutils (7),
-.BR keyrings (7)
+.BR keyrings (7),
+.BR keyutils (7)
diff --git a/man/keyctl_get_keyring_ID.3 b/man/keyctl_get_keyring_ID.3
index 180d63e..bc8dd56 100644
--- a/man/keyctl_get_keyring_ID.3
+++ b/man/keyctl_get_keyring_ID.3
@@ -90,5 +90,5 @@
 .BR keyctl (2),
 .BR request_key (2),
 .BR keyctl (3),
-.BR keyutils (7),
-.BR keyrings (7)
+.BR keyrings (7),
+.BR keyutils (7)
diff --git a/man/keyctl_get_persistent.3 b/man/keyctl_get_persistent.3
index eb8d506..35c7b06 100644
--- a/man/keyctl_get_persistent.3
+++ b/man/keyctl_get_persistent.3
@@ -107,6 +107,6 @@
 .BR keyctl (2),
 .BR request_key (2),
 .BR keyctl (3),
-.BR persistent\-keyring (7),
+.BR keyrings (7),
 .BR keyutils (7),
-.BR keyrings (7)
+.BR persistent\-keyring (7),
diff --git a/man/keyctl_get_security.3 b/man/keyctl_get_security.3
index e298dfc..f99aa61 100644
--- a/man/keyctl_get_security.3
+++ b/man/keyctl_get_security.3
@@ -94,5 +94,5 @@
 .BR keyctl (2),
 .BR request_key (2),
 .BR keyctl (3),
-.BR keyutils (7),
-.BR keyrings (7)
+.BR keyrings (7),
+.BR keyutils (7)
diff --git a/man/keyctl_instantiate.3 b/man/keyctl_instantiate.3
index a74585f..8fe9b64 100644
--- a/man/keyctl_instantiate.3
+++ b/man/keyctl_instantiate.3
@@ -186,6 +186,6 @@
 .BR keyctl (2),
 .BR request_key (2),
 .BR keyctl (3),
-.BR request\-key (8),
+.BR keyrings (7),
 .BR keyutils (7),
-.BR keyrings (7)
+.BR request\-key (8)
diff --git a/man/keyctl_invalidate.3 b/man/keyctl_invalidate.3
index 87a0304..9545abe 100644
--- a/man/keyctl_invalidate.3
+++ b/man/keyctl_invalidate.3
@@ -70,5 +70,5 @@
 .BR keyctl (2),
 .BR request_key (2),
 .BR keyctl (3),
-.BR keyutils (7),
-.BR keyrings (7)
+.BR keyrings (7),
+.BR keyutils (7)
diff --git a/man/keyctl_join_session_keyring.3 b/man/keyctl_join_session_keyring.3
index e0fa8ee..d7ec4b4 100644
--- a/man/keyctl_join_session_keyring.3
+++ b/man/keyctl_join_session_keyring.3
@@ -76,7 +76,7 @@
 .BR keyctl (2),
 .BR request_key (2),
 .BR keyctl (3),
-.BR session\-keyring (7),
-.BR user\-session-keyring (7),
+.BR keyrings (7),
 .BR keyutils (7),
-.BR keyrings (7)
+.BR session\-keyring (7),
+.BR user\-session-keyring (7)
diff --git a/man/keyctl_link.3 b/man/keyctl_link.3
index 9b31c01..6dbbc04 100644
--- a/man/keyctl_link.3
+++ b/man/keyctl_link.3
@@ -102,6 +102,6 @@
 .BR keyctl (2),
 .BR request_key (2),
 .BR keyctl (3),
-.BR keyutils (7),
-.BR keyrings (7)
+.BR keyrings (7),
+.BR keyutils (7)
 
diff --git a/man/keyctl_read.3 b/man/keyctl_read.3
index 1ddebbd..4411818 100644
--- a/man/keyctl_read.3
+++ b/man/keyctl_read.3
@@ -106,5 +106,5 @@
 .BR keyctl (2),
 .BR request_key (2),
 .BR keyctl (3),
-.BR keyutils (7),
-.BR keyrings (7)
+.BR keyrings (7),
+.BR keyutils (7)
diff --git a/man/keyctl_revoke.3 b/man/keyctl_revoke.3
index 26ac6c8..3220e10 100644
--- a/man/keyctl_revoke.3
+++ b/man/keyctl_revoke.3
@@ -67,5 +67,5 @@
 .BR keyctl (2),
 .BR request_key (2),
 .BR keyctl (3),
-.BR keyutils (7),
-.BR keyrings (7)
+.BR keyrings (7),
+.BR keyutils (7)
diff --git a/man/keyctl_search.3 b/man/keyctl_search.3
index 59a2ef3..cc57f66 100644
--- a/man/keyctl_search.3
+++ b/man/keyctl_search.3
@@ -132,5 +132,5 @@
 .BR keyctl (2),
 .BR request_key (2),
 .BR keyctl (3),
-.BR keyutils (7),
-.BR keyrings (7)
+.BR keyrings (7),
+.BR keyutils (7)
diff --git a/man/keyctl_session_to_parent.3 b/man/keyctl_session_to_parent.3
index 0d1b518..84657e6 100644
--- a/man/keyctl_session_to_parent.3
+++ b/man/keyctl_session_to_parent.3
@@ -69,7 +69,7 @@
 .BR keyctl (2),
 .BR request_key (2),
 .BR keyctl (3),
-.BR session\-keyring (7),
-.BR user\-session-keyring (7),
+.BR keyrings (7),
 .BR keyutils (7),
-.BR keyrings (7)
+.BR session\-keyring (7),
+.BR user\-session-keyring (7)
diff --git a/man/keyctl_set_reqkey_keyring.3 b/man/keyctl_set_reqkey_keyring.3
index 75624f5..b4a8013 100644
--- a/man/keyctl_set_reqkey_keyring.3
+++ b/man/keyctl_set_reqkey_keyring.3
@@ -92,6 +92,6 @@
 .BR keyctl (2),
 .BR request_key (2),
 .BR keyctl (3),
-.BR request\-key (8),
 .BR keyutils (7),
-.BR keyrings (7)
+.BR keyrings (7),
+.BR request\-key (8)
diff --git a/man/keyctl_set_timeout.3 b/man/keyctl_set_timeout.3
index 7f30bb3..523ed90 100644
--- a/man/keyctl_set_timeout.3
+++ b/man/keyctl_set_timeout.3
@@ -75,5 +75,5 @@
 .BR keyctl (2),
 .BR request_key (2),
 .BR keyctl (3),
-.BR keyutils (7),
-.BR keyrings (7)
+.BR keyrings (7),
+.BR keyutils (7)
diff --git a/man/keyctl_setperm.3 b/man/keyctl_setperm.3
index c202299..e51047a 100644
--- a/man/keyctl_setperm.3
+++ b/man/keyctl_setperm.3
@@ -124,5 +124,5 @@
 .BR keyctl (2),
 .BR request_key (2),
 .BR keyctl (3),
-.BR keyutils (7),
-.BR keyrings (7)
+.BR keyrings (7),
+.BR keyutils (7)
diff --git a/man/keyctl_update.3 b/man/keyctl_update.3
index 4156cea..c971d94 100644
--- a/man/keyctl_update.3
+++ b/man/keyctl_update.3
@@ -90,5 +90,5 @@
 .BR keyctl (2),
 .BR request_key (2),
 .BR keyctl (3),
-.BR keyutils (7),
-.BR keyrings (7)
+.BR keyrings (7),
+.BR keyutils (7)
diff --git a/man/keyutils.7 b/man/keyutils.7
index e3bca88..6d88702 100644
--- a/man/keyutils.7
+++ b/man/keyutils.7
@@ -95,11 +95,10 @@
 .ad l
 .nh
 .BR keyrings (7),
-.BR pam_keyinit (8),
+.BR persistent\-keyring (7),
 .BR process\-keyring (7),
 .BR session\-keyring (7),
 .BR thread\-keyring (7),
 .BR user\-keyring (7),
 .BR user\-session-keyring (7),
-.BR persistent\-keyring (7)
-
+.BR pam_keyinit (8)