It is important to note that the order of declaration of attributes is irrelevant.
For example,
<span tal:define="usersList application/listUsers" tal:condition="somecondition" tal:repeat="user usersList">…</span>
Is exactly the same as:
<span tal:repeat="user usersList" tal:condition="somecondition" tal:define="usersList application/listUsers">…</span>
Priority is the same as described by the TAL specification:
define
condition
repeat
content
or
replace
attributes
omit-tag