Reorderer optimizations.
Optimize reorderer.