From 4ec427ea2efbd9db41062e5c602fbcb0508988bf Mon Sep 17 00:00:00 2001 From: Oscar Dowson Date: Thu, 14 Mar 2024 12:41:58 +1300 Subject: [PATCH] Update DocumenterReference.jl --- docs/DocumenterReference.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/DocumenterReference.jl b/docs/DocumenterReference.jl index 9f62d98970d..3fadca62fcd 100644 --- a/docs/DocumenterReference.jl +++ b/docs/DocumenterReference.jl @@ -131,8 +131,8 @@ end function _iterate_over_symbols(f, config) current_module = config.current_module modules = get(config.modules, config.current_module, Any[]) - key_types = sort(_exported_symbols(current_module); by = config.sort_by) - for (key, type) in vcat(key_types, modules) + key_types = vcat(_exported_symbols(current_module), modules) + for (key, type) in sort!(key_types; by = config.sort_by) if key isa Symbol doc = Base.Docs.doc(Base.Docs.Binding(current_module, key)) if occursin("No documentation found.", string(doc))