@@ -51,7 +51,7 @@ const EXT_STDLIB_DOCS = ["Pkg"]
5151cd (joinpath (buildrootdoc, " src" )) do
5252 Base. rm (" stdlib" ; recursive= true , force= true )
5353 mkdir (" stdlib" )
54- for dir in readdir (STDLIB_DIR)
54+ for dir in sort! ( collect ( readdir (STDLIB_DIR)) )
5555 sourcefile = joinpath (STDLIB_DIR, dir, " docs" , " src" )
5656 if dir in EXT_STDLIB_DOCS
5757 sourcefile = joinpath (sourcefile, " basedocs.md" )
9595documenter_stdlib_remotes = let stdlib_dir = realpath (joinpath (@__DIR__ , " .." , " stdlib" )),
9696 stdlib_build_dir = joinpath (buildrootdoc, " .." , " stdlib" )
9797 # Get a list of all *.version files in stdlib/..
98- version_files = filter (readdir (stdlib_dir)) do fname
98+ version_files = sort! ( filter (readdir (stdlib_dir)) do fname
9999 isfile (joinpath (stdlib_dir, fname)) && endswith (fname, " .version" )
100- end
100+ end )
101101 # .. and then parse them, each becoming an entry for makedocs's remotes.
102102 # The values for each are of the form path => (remote, sha1), where
103103 # - path: the path to the stdlib package's root directory, i.e. "stdlib/$PACKAGE"
0 commit comments