sort windows in creation order