Removes unused possible roles and sorts possibles