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