mirror of
https://github.com/octoleo/restic.git
synced 2025-01-22 22:58:26 +00:00
Use sort.Strings
This commit is contained in:
parent
2ddb7ffb7e
commit
337725c354
@ -196,7 +196,7 @@ func uniqueNodeNames(tree1, tree2 *restic.Tree) (tree1Nodes, tree2Nodes map[stri
|
||||
uniqueNames = append(uniqueNames, name)
|
||||
}
|
||||
|
||||
sort.Sort(sort.StringSlice(uniqueNames))
|
||||
sort.Strings(uniqueNames)
|
||||
return tree1Nodes, tree2Nodes, uniqueNames
|
||||
}
|
||||
|
||||
|
@ -51,7 +51,7 @@ func GroupSnapshots(snapshots Snapshots, options string) (map[string]Snapshots,
|
||||
|
||||
if GroupByTag {
|
||||
tags = sn.Tags
|
||||
sort.StringSlice(tags).Sort()
|
||||
sort.Strings(tags)
|
||||
}
|
||||
if GroupByHost {
|
||||
hostname = sn.Hostname
|
||||
@ -60,7 +60,7 @@ func GroupSnapshots(snapshots Snapshots, options string) (map[string]Snapshots,
|
||||
paths = sn.Paths
|
||||
}
|
||||
|
||||
sort.StringSlice(sn.Paths).Sort()
|
||||
sort.Strings(sn.Paths)
|
||||
var k []byte
|
||||
var err error
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user