Preserve the order of windows