Permalink
Browse files

Added sorting of subconfigdir

  • Loading branch information...
1 parent 75dbb60 commit e662e510e391196b6ad424fa45b6c5750b854690 tjeerd committed with vinoski Aug 26, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/yaws_config.erl
View
@@ -632,10 +632,11 @@ fload(FD, globals, GC, C, Cs, Lno, Chars) ->
true ->
case file:list_dir(Dir) of
{ok, Names} ->
+ Sorted = lists:sort(Names),
Paths = lists:map(
fun(N) ->
filename:absname(N, Dir)
- end, Names),
+ end, Sorted),
Fold = lists:foldl(
fun subconfigdir_fold/2,
{ok, GC, Cs}, Paths),

0 comments on commit e662e51

Please sign in to comment.