GTR002 — Reorder <param> attributes (codemod)
Contract: behaviour-preserving.
Claim
Reordering a <param>’s attributes into canonical order is a no-op.
Proof
Two independent legs:
XML 1.0 §3.1: “the order of attribute specifications … is not significant.”
Galaxy consumes attributes exclusively by name —
elem.get("…")throughoutlib/galaxy/tool_util/parser/xml.py; no parser exposes attribute order. No text/tail is touched.
Scope boundary
None needed — the transform is total. Shares _attribute_ordering.py with
GTR005.