Need to ensure role has capabilities before trying to sort it!