mirror of
https://github.com/restic/restic.git
synced 2025-08-20 07:17:31 +00:00
Sort IDSet.List()
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user