Sort list of windows.