mirror of
https://github.com/octoleo/restic.git
synced 2024-11-27 07:16:40 +00:00
Sort IDSet.List()
This commit is contained in:
parent
89a77ab2f9
commit
30cf002574
@ -1,5 +1,7 @@
|
|||||||
package backend
|
package backend
|
||||||
|
|
||||||
|
import "sort"
|
||||||
|
|
||||||
// IDSet is a set of IDs.
|
// IDSet is a set of IDs.
|
||||||
type IDSet map[ID]struct{}
|
type IDSet map[ID]struct{}
|
||||||
|
|
||||||
@ -36,6 +38,8 @@ func (s IDSet) List() IDs {
|
|||||||
list = append(list, id)
|
list = append(list, id)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sort.Sort(list)
|
||||||
|
|
||||||
return list
|
return list
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user