Swap dependency order