retrieve local users, groups and group members in a sorted way
Merge pull request #10734 from owncloud/fix-10268

retrieve local users, groups and group members in a sorted way