Fix sorting of primary users
Merge pull request #253 from toberndo/fix_getPrimaryUser

Fix sorting of primary users