diff --git a/doc/api/errors.md b/doc/api/errors.md
index 79a653e98c72bc..a7674c55665df9 100644
--- a/doc/api/errors.md
+++ b/doc/api/errors.md
@@ -2510,12 +2510,6 @@ nor a relative path starting with `./` or `../`.
All attempts at serializing an uncaught exception from a worker thread failed.
-
-### `ERR_WORKER_UNSUPPORTED_EXTENSION`
-
-The pathname used for the main script of a worker has an
-unknown file extension.
-
### `ERR_WORKER_UNSUPPORTED_OPERATION`
@@ -2842,6 +2836,16 @@ Used when a given value is out of the accepted range.
The module must be successfully linked before instantiation.
+
+### `ERR_WORKER_UNSUPPORTED_EXTENSION`
+
+
+The pathname used for the main script of a worker has an
+unknown file extension.
+
### `ERR_ZLIB_BINDING_CLOSED`