put name first in attribute rule

so rule order is preserved even when using attributes