ARQ-1608 Sort deployments in order so that extensions are called in depl...

...oyment order