Reorder modes for functional style.