Skip to content

Commit

Permalink
Sort Configuration.Files call
Browse files Browse the repository at this point in the history
  • Loading branch information
evanpurkhiser committed Jun 7, 2017
1 parent d3318d8 commit 00cf59b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion resolver/resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package resolver
import (
"os"
"path/filepath"
"sort"
"strings"
)

Expand All @@ -29,12 +30,14 @@ type Configurations map[string]*ConfigFile

// Files gets the list of all configuration files.
func (c Configurations) Files() []string {
files := make([]string, len(c))
files := []string{}

for path := range c {
files = append(files, path)
}

sort.Strings(files)

return files
}

Expand Down

0 comments on commit 00cf59b

Please sign in to comment.