http: use sort.Strings

release-2.0
Yicheng Qin 2014-09-09 16:20:02 -07:00
parent d519491545
commit 01871e7c29
1 changed files with 1 additions and 1 deletions

View File

@ -215,7 +215,7 @@ func (h Handler) serveMachines(w http.ResponseWriter, r *http.Request) {
urls = append(urls, addScheme(addr))
}
}
sort.Sort(sort.StringSlice(urls))
sort.Strings(urls)
w.Write([]byte(strings.Join(urls, ", ")))
}