Fix issue where user was not sorted properly after going inactive