nomad: sort regions before returning

This commit is contained in:
Ryan Uber
2015-11-24 13:15:01 -08:00
parent 2e009e5060
commit a455c80cee

View File

@@ -10,6 +10,7 @@ import (
"os"
"path/filepath"
"reflect"
"sort"
"strconv"
"sync"
"time"
@@ -624,6 +625,7 @@ func (s *Server) Regions() []string {
for region, _ := range s.peers {
regions = append(regions, region)
}
sort.Strings(regions)
return regions
}