SortIndex: only indicate we modified a rule if we realy did.