reorder quotes within a window