diff --git a/doc/api/errors.md b/doc/api/errors.md
index ebe7de64a2bf9a..f59a9ffcf5cb79 100644
--- a/doc/api/errors.md
+++ b/doc/api/errors.md
@@ -688,12 +688,6 @@ Used when a child process is being forked without specifying an IPC channel.
Used when the main process is trying to read data from the child process's
STDERR/STDOUT, and the data's length is longer than the `maxBuffer` option.
-
-### ERR_CLOSED_MESSAGE_PORT
-
-There was an attempt to use a `MessagePort` instance in a closed
-state, usually after `.close()` has been called.
-
### ERR_CONSOLE_WRITABLE_STREAM
@@ -1986,6 +1980,16 @@ A module file could not be resolved while attempting a [`require()`][] or
> Stability: 0 - Deprecated. These error codes are either inconsistent, or have
> been removed.
+
+### ERR_CLOSED_MESSAGE_PORT
+
+
+There was an attempt to use a `MessagePort` instance in a closed
+state, usually after `.close()` has been called.
+
### ERR_HTTP2_FRAME_ERROR