Sort config files as documented.

This commit is contained in:
Chris Hines 2015-12-15 02:05:25 -05:00
parent af0e9b1477
commit 8483a0dd40

View file

@ -8,6 +8,7 @@ import (
"os"
"path/filepath"
"runtime"
"sort"
"strings"
"time"
@ -705,6 +706,8 @@ func LoadConfigDir(dir string) (*Config, error) {
return &Config{}, nil
}
sort.Strings(files)
var result *Config
for _, f := range files {
config, err := LoadConfigFile(f)