Sort errors.
diff --git a/man/zip_name_locate.mdoc b/man/zip_name_locate.mdoc
index 3f28518..2e15ae3 100644
--- a/man/zip_name_locate.mdoc
+++ b/man/zip_name_locate.mdoc
@@ -92,14 +92,14 @@
 .Fn zip_name_locate
 fails if:
 .Bl -tag -width Er
-.It Bq Er ZIP_ER_NOENT
-No entry of the name
-.Ar fname
-is found in the archive.
 .It Bq Er ZIP_ER_INVAL
 One of the arguments is invalid.
 .It Bq Er ZIP_ER_MEMORY
 Required memory could not be allocated.
+.It Bq Er ZIP_ER_NOENT
+No entry of the name
+.Ar fname
+is found in the archive.
 .El
 .Sh SEE ALSO
 .Xr libzip 3 ,
diff --git a/man/zip_set_file_compression.mdoc b/man/zip_set_file_compression.mdoc
index 65e02eb..e775108 100644
--- a/man/zip_set_file_compression.mdoc
+++ b/man/zip_set_file_compression.mdoc
@@ -96,13 +96,13 @@
 .Fn zip_set_file_compression
 fails if:
 .Bl -tag -width Er
+.It Bq Er ZIP_ER_COMPNOTSUPP
+Unsupported compression method requested.
 .It Bq Er ZIP_ER_INVAL
 .Ar index
 is not a valid file index in
 .Ar archive ,
 or the argument combination is invalid.
-.It Bq Er ZIP_ER_COMPNOTSUPP
-Unsupported compression method requested.
 .It Bq Er ZIP_ER_RDONLY
 Read-only zip file, no changes allowed.
 .El