diff --git a/docs/library/index.rst b/docs/library/index.rst
index eb6a466255c367421ad14ce22794e601da7ddfe7..81cae65a7d35f5942ddbe64a8ba71996ba810af3 100644
--- a/docs/library/index.rst
+++ b/docs/library/index.rst
@@ -38,9 +38,9 @@ it will fallback to loading the built-in ``ujson`` module.
 .. toctree::
    :maxdepth: 1
 
-   usocket.rst
    uheapq.rst
    ujson.rst
+   usocket.rst
 
 Libraries specific to the pyboard
 ---------------------------------