diff options
Diffstat (limited to 'commands/server.go')
-rw-r--r-- | commands/server.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/commands/server.go b/commands/server.go index c2fee68b2..c4a8ddd29 100644 --- a/commands/server.go +++ b/commands/server.go @@ -32,6 +32,7 @@ import ( "path" "path/filepath" "regexp" + "sort" "strconv" "strings" "sync" @@ -210,16 +211,17 @@ func (f *fileChangeDetector) changed() []string { } } - return f.filterIrrelevant(c) + return f.filterIrrelevantAndSort(c) } -func (f *fileChangeDetector) filterIrrelevant(in []string) []string { +func (f *fileChangeDetector) filterIrrelevantAndSort(in []string) []string { var filtered []string for _, v := range in { if !f.irrelevantRe.MatchString(v) { filtered = append(filtered, v) } } + sort.Strings(filtered) return filtered } |