There was an error while loading. Please reload this page.
1 parent f9c053d commit 2229ed7Copy full SHA for 2229ed7
lib/elixir/lib/io/ansi/docs.ex
@@ -78,7 +78,9 @@ defmodule IO.ANSI.Docs do
78
@metadata_filter [:deprecated, :guard, :since]
79
80
defp print_each_metadata(metadata, options) do
81
- Enum.reduce(metadata, false, fn
+ metadata
82
+ |> Enum.sort()
83
+ |> Enum.reduce(false, fn
84
{key, value}, _printed when is_binary(value) and key in @metadata_filter ->
85
label = metadata_label(key, options)
86
indent = String.duplicate(" ", length_without_escape(label, 0) + 1)
0 commit comments