adds logical changes required for sharepoint permission handling, both backup and restore. --- #### Does this PR need a docs update or release note? - [x] ✅ Yes, it's included #### Type of change - [x] 🌻 Feature #### Issue(s) * #3135 #### Test Plan - [x] 💪 Manual - [x] ⚡ Unit test - [x] 💚 E2E
11 lines
274 B
Go
11 lines
274 B
Go
package data
|
|
|
|
import "sort"
|
|
|
|
// SortRestoreCollections performs an in-place sort on the provided collection.
|
|
func SortRestoreCollections(rcs []RestoreCollection) {
|
|
sort.Slice(rcs, func(i, j int) bool {
|
|
return rcs[i].FullPath().String() < rcs[j].FullPath().String()
|
|
})
|
|
}
|