simplified string sorting by using a more suitable function

This commit is contained in:
Alexandr Bruyako
2019-06-30 23:20:32 +03:00
parent 3ca424050f
commit 16eeed2ad5
4 changed files with 10 additions and 10 deletions

View File

@@ -176,7 +176,7 @@ func (b *Backup) update(total, processed counter, errors uint, currentFiles map[
for filename := range currentFiles {
lines = append(lines, filename)
}
sort.Sort(sort.StringSlice(lines))
sort.Strings(lines)
lines = append([]string{status}, lines...)
b.term.SetStatus(lines)