2
2
mirror of https://github.com/octoleo/restic.git synced 2024-06-15 15:22:22 +00:00

Merge pull request #2589 from greatroar/no-stable-sort

Replace sort.Stable by sort.Strings
This commit is contained in:
Alexander Neumann 2020-03-01 19:40:28 +01:00 committed by GitHub
commit 95da6c1c1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -516,7 +516,7 @@ func (arch *Archiver) SaveTree(ctx context.Context, snPath string, atree *Tree,
for name := range atree.Nodes { for name := range atree.Nodes {
names = append(names, name) names = append(names, name)
} }
sort.Stable(sort.StringSlice(names)) sort.Strings(names)
for _, name := range names { for _, name := range names {
subatree := atree.Nodes[name] subatree := atree.Nodes[name]