Sort users according to group. See issue #152