Sort node role list