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
1 changed files with 1 additions and 1 deletions

View File

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