Window - Arrange Icons

Ribbon bar. Select the Home tab. In the Windows group, click Arrange Icons  to arrange all minimized windows into rows.

Classic menus. From the Window menu, select Arrange Icons to arrange all minimized windows into rows.