corso/src/internal/data/helpers.go
Keepers 97ed97c1c3
logic change for sharepoint permission support (#3333)
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
2023-05-15 21:03:00 +00:00

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()
})
}