User list: Avoid dupes and better sorting. Fix #2420
Merge pull request #2434 from owncloud/userlist_no_dupes

User list: Avoid dupes and better sorting. Fix #2420