Changed all references of sort.SortStrings to sort.Strings per commit 9012 of go

Change-Id: I2af1eeea05b65db10b17bc077a8af2dd5778910d
This commit is contained in:
Amit Levy 2011-07-08 17:34:23 -04:00
parent 711bcfbd44
commit d6825c9af8
6 changed files with 6 additions and 6 deletions

View File

@ -35,7 +35,7 @@ func PrintMap(m map[string]float64) {
keys = append(keys, k)
}
sort.SortStrings(keys)
sort.Strings(keys)
for _, k := range keys {
if m[k] > 0 {
fmt.Println(k, m[k])

View File

@ -122,7 +122,7 @@ func (up *Uploader) UploadFile(filename string) (*client.PutResult, os.Error) {
return nil, err
}
dir.Close()
sort.SortStrings(dirNames)
sort.Strings(dirNames)
// TODO: process dirName entries in parallel
for _, dirEntName := range dirNames {
pr, err := up.UploadFile(filename + "/" + dirEntName)

View File

@ -59,7 +59,7 @@ func readBlobs(opts readBlobRequest) os.Error {
if err != nil {
return &enumerateError{"localdisk: readdirnames of " + dirFullPath, err}
}
sort.SortStrings(names)
sort.Strings(names)
for _, name := range names {
if *opts.remain == 0 {
return nil

View File

@ -110,7 +110,7 @@ func writeCanonicalizedAmzHeaders(buf *bytes.Buffer, req *http.Request) {
vals[lk] = vv
}
}
sort.SortStrings(amzHeaders)
sort.Strings(amzHeaders)
for _, k := range amzHeaders {
buf.WriteString(k)
buf.WriteByte(':')

View File

@ -315,7 +315,7 @@ func PrintMap(m map[string]float64) {
keys = append(keys, k)
}
sort.SortStrings(keys)
sort.Strings(keys)
for _, k := range keys {
if m[k] > 0 {
fmt.Println(k, m[k])

View File

@ -82,7 +82,7 @@ func (me *TimingPathFilesystem) HotPaths(operation string) (paths []string, uniq
results = append(results, fmt.Sprintf("% 9d %s", v, k))
}
sort.SortStrings(results)
sort.Strings(results)
return results, len(counts)
}