output order is important

In the case of filters, the definition order is important as later filters may depend on earlier filters. Preserve the order in the output.