Reorder index transformation order to enable more CSE.