aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEvgeny Khramtsov <ekhramtsov@process-one.net>2018-10-04 14:31:41 +0300
committerEvgeny Khramtsov <ekhramtsov@process-one.net>2018-10-04 14:31:41 +0300
commitebd50f8a69ff6e4dde1a8c8be376434b1cc7f6f1 (patch)
tree8f342c1e1102af9523e3d300cec6380ca9dd139b /src
parentRun ejabberd_started hook earlier (diff)
Report available options in lexical order
Diffstat (limited to 'src')
-rw-r--r--src/misc.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/misc.erl b/src/misc.erl
index c415e9817..8bf7d43a6 100644
--- a/src/misc.erl
+++ b/src/misc.erl
@@ -204,7 +204,7 @@ compile_exprs(Mod, Exprs) ->
-spec join_atoms([atom()], binary()) -> binary().
join_atoms(Atoms, Sep) ->
- str:join([io_lib:format("~p", [A]) || A <- Atoms], Sep).
+ str:join([io_lib:format("~p", [A]) || A <- lists:sort(Atoms)], Sep).
%% @doc Checks if the file is readable and converts its name to binary.
%% Fails with `badarg` otherwise. The function is intended for usage