Don't rely on the sorting the database gives us for tests
Merge pull request #11190 from owncloud/fix-unit-test-sort-order-stable7

Don't rely on the sorting the database gives us for tests