diff --git a/lib/iex/lib/iex/introspection.ex b/lib/iex/lib/iex/introspection.ex index d7d305eba13..36b84f7ea46 100644 --- a/lib/iex/lib/iex/introspection.ex +++ b/lib/iex/lib/iex/introspection.ex @@ -283,6 +283,7 @@ defmodule IEx.Introspection do true -> module.module_info(:exports) end + |> Enum.sort() result = for {^function, arity} <- exports, diff --git a/lib/iex/test/iex/helpers_test.exs b/lib/iex/test/iex/helpers_test.exs index 41ed813abd6..fc07469a40e 100644 --- a/lib/iex/test/iex/helpers_test.exs +++ b/lib/iex/test/iex/helpers_test.exs @@ -343,6 +343,12 @@ defmodule IEx.HelpersTest do """ assert capture_io(fn -> h(:timer.send_interval()) end) == """ + * :timer.send_interval/2 + + @spec send_interval(time, message) :: {:ok, tRef} | {:error, reason} + when time: time(), message: term(), tRef: tref(), reason: term() + + Module was compiled without docs. Showing only specs. * :timer.send_interval/3 @spec send_interval(time, pid, message) :: {:ok, tRef} | {:error, reason} @@ -352,12 +358,6 @@ defmodule IEx.HelpersTest do tRef: tref(), reason: term() - Module was compiled without docs. Showing only specs. - * :timer.send_interval/2 - - @spec send_interval(time, message) :: {:ok, tRef} | {:error, reason} - when time: time(), message: term(), tRef: tref(), reason: term() - Module was compiled without docs. Showing only specs. """ end