2
2
mirror of https://github.com/octoleo/restic.git synced 2024-09-22 03:49:02 +00:00

Sort IDSet.List()

This commit is contained in:
Alexander Neumann 2015-11-01 22:45:10 +01:00
parent 89a77ab2f9
commit 30cf002574

View File

@ -1,5 +1,7 @@
package backend
import "sort"
// IDSet is a set of IDs.
type IDSet map[ID]struct{}
@ -36,6 +38,8 @@ func (s IDSet) List() IDs {
list = append(list, id)
}
sort.Sort(list)
return list
}