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