Skip to content

Commit

Permalink
Keep order on pages, closes #1469
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim committed Jan 11, 2022
1 parent f7276c8 commit dba7ea2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ex_doc/formatter/html.ex
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ defmodule ExDoc.Formatter.HTML do
groups = config.groups_for_extras

config.extras
|> Task.async_stream(&build_extra(&1, groups, config, ext), timeout: :infinity, ordered: false)
|> Task.async_stream(&build_extra(&1, groups, config, ext), timeout: :infinity)
|> Enum.map(&elem(&1, 1))
|> Enum.sort_by(fn extra -> GroupMatcher.group_index(groups, extra.group) end)
end
Expand Down

0 comments on commit dba7ea2

Please sign in to comment.