Reorder xml imports so that migrations run first.