Create a SortedRepositoryInterface to be able to sort entities before ex...

...porting

| Q                    | A
| -------------------- | ---
| Bug fix?             | ?
| New feature?         | ?
| BC breaks?           | N
| CI currently passes? | Y
| Tests pass?          | Y
| Scenarios pass?      | ?
| Checkstyle issues?*  | N
| PMD issues?**        | N
| Changelog updated?   | N
| Fixed tickets        | PIM-2866
| Doc PR               | ~