sort xml and plan to guarantee the same execution order

- up to now, it was more like depending on file system scanning order,
  which can change any time.
- This may reveal new issues, but should be better in the long run.

Change-Id: Ib810c166c9be8207caf09df0b489c3013a279e23
5 files changed