Note that the following two compositions have the same frequency response:
LTI systems are commutative. The order does not affect the input/output relation.