(lib.tex, libwww.tex):  Include the sgmlib chapter before the htmllib
	chapter to better reflect the relationship between the modules.
diff --git a/Doc/lib.tex b/Doc/lib.tex
index 42f0ef3..020ae83 100644
--- a/Doc/lib.tex
+++ b/Doc/lib.tex
@@ -139,8 +139,8 @@
 \input{libgopherlib}
 \input{libnntplib}
 \input{liburlparse}
-\input{libhtmllib}
 \input{libsgmllib}
+\input{libhtmllib}
 \input{libformatter}
 \input{librfc822}
 \input{libmimetools}
diff --git a/Doc/lib/lib.tex b/Doc/lib/lib.tex
index 42f0ef3..020ae83 100644
--- a/Doc/lib/lib.tex
+++ b/Doc/lib/lib.tex
@@ -139,8 +139,8 @@
 \input{libgopherlib}
 \input{libnntplib}
 \input{liburlparse}
-\input{libhtmllib}
 \input{libsgmllib}
+\input{libhtmllib}
 \input{libformatter}
 \input{librfc822}
 \input{libmimetools}
diff --git a/Doc/lib/libwww.tex b/Doc/lib/libwww.tex
index 3317fb3..c42494e 100644
--- a/Doc/lib/libwww.tex
+++ b/Doc/lib/libwww.tex
@@ -36,12 +36,12 @@
 --- Parse a URL string into a tuple (addressing scheme identifier, network
 location, path, parameters, query string, fragment identifier).
 
-\item[htmllib]
---- A (slow) parser for HTML documents.
-
 \item[sgmllib]
 --- Only as much of an SGML parser as needed to parse HTML.
 
+\item[htmllib]
+--- A (slow) parser for HTML documents.
+
 \item[formatter]
 --- Generic output formatter and device interface.
 
diff --git a/Doc/libwww.tex b/Doc/libwww.tex
index 3317fb3..c42494e 100644
--- a/Doc/libwww.tex
+++ b/Doc/libwww.tex
@@ -36,12 +36,12 @@
 --- Parse a URL string into a tuple (addressing scheme identifier, network
 location, path, parameters, query string, fragment identifier).
 
-\item[htmllib]
---- A (slow) parser for HTML documents.
-
 \item[sgmllib]
 --- Only as much of an SGML parser as needed to parse HTML.
 
+\item[htmllib]
+--- A (slow) parser for HTML documents.
+
 \item[formatter]
 --- Generic output formatter and device interface.