diff --git a/ci/dox.sh b/ci/dox.sh
index febe18b35b83616b8029cdb4a4472b7deeb457c1..0c89a2e17b1e90b6128445d47b3963c1be69d972 100644
--- a/ci/dox.sh
+++ b/ci/dox.sh
@@ -25,7 +25,7 @@ cargo +nightly install cargo-xbuild -Z install-upgrade
 # shellcheck disable=SC1003
 grep '[\d|\w|-]* \\' ci/build.sh > targets
 sed -i.bak 's/ \\//g' targets
-grep '^[_a-zA-Z0-9-]*$' targets > tmp && mv tmp targets
+grep '^[_a-zA-Z0-9-]*$' targets | sort > tmp && mv tmp targets
 
 # Create a markdown list of supported platforms in $PLATFORM_SUPPORT
 rm $PLATFORM_SUPPORT || true