diff --git a/doc/api/errors.md b/doc/api/errors.md
index e8b416949da7c8..3ff3c5c1797332 100644
--- a/doc/api/errors.md
+++ b/doc/api/errors.md
@@ -714,6 +714,22 @@ 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`
@@ -2460,16 +2476,6 @@ removed: v12.5.0
The value passed to `postMessage()` contained an object that is not supported
for transferring.
-
-### `ERR_CLOSED_MESSAGE_PORT`
-
-
-There was an attempt to use a `MessagePort` instance in a closed
-state, usually after `.close()` has been called.
-
### `ERR_CRYPTO_HASH_DIGEST_NO_UTF16`