Add sorting by role and confirmed_at. Fix ##252