Fix user sorting

Fixes #81