Refactor userlist sort to insert in sorted order