When I have multiple windows of the same program running (e.g. multiple documents in the same editor, or multiple terminal windows), and I click on the program's sidebar icon, and it shows a grid of reduced windows to pick which one I want to bring to the foreground, how is the arrangement of those windows determined? It seems that each time I select a window, if I click the program icon to see the selection again, the windows are in a different arrangement, but I haven't been able to figure out what rule is used to arrange the windows, so it has been a bit disorienting. If I knew how it arranged them, it might help.
Also, is there a way to affect the rule, and get it to not change the arrangement when a window is chosen? (That would help me when switching back and forth between a few files.)