optimization of ordered windows (also -optimize)