Swap ni and imp (so they are in the same order as their sections are).
diff --git a/Doc/lib/libpython.tex b/Doc/lib/libpython.tex
index 902a092..1c9c6d5 100644
--- a/Doc/lib/libpython.tex
+++ b/Doc/lib/libpython.tex
@@ -37,12 +37,12 @@
 --- Convert Python objects to streams of bytes and back (with
 different constraints).
 
-\item[ni]
---- New import (obsolete).
-
 \item[imp]
 --- Access the implementation of the \code{import} statement.
 
+\item[ni]
+--- New import (obsolete).
+
 \item[parser]
 --- Retrieve and submit parse trees from and to the runtime support
 environment.
diff --git a/Doc/libpython.tex b/Doc/libpython.tex
index 902a092..1c9c6d5 100644
--- a/Doc/libpython.tex
+++ b/Doc/libpython.tex
@@ -37,12 +37,12 @@
 --- Convert Python objects to streams of bytes and back (with
 different constraints).
 
-\item[ni]
---- New import (obsolete).
-
 \item[imp]
 --- Access the implementation of the \code{import} statement.
 
+\item[ni]
+--- New import (obsolete).
+
 \item[parser]
 --- Retrieve and submit parse trees from and to the runtime support
 environment.