All posts

Mac Auto Arrange: Keep Desktop and Finder Icons in Order

Stacks, Sort By and Use as Defaults keep your Mac Desktop and Finder windows in order without moving a single file. Here is which setting to turn on and why.

9 min readmac auto arrange · how to auto arrange files on mac · auto arrange desktop icons mac
Mac Auto Arrange: Keep Desktop and Finder Icons in Order

Mac auto arrange settings live in two places most people never open: the View menu on the Desktop and the View Options panel in Finder. Turn the right ones on and your Desktop icons line up by kind or date by themselves, and every Finder window shows files in the same order each time. Nothing gets moved or renamed. Only the display changes.

That makes arranging the right fix for a Desktop that looks chaotic but holds a manageable number of files. (Several hundred? Read the last section first.)

The steps follow Apple's Mac User Guide for macOS 27 Golden Gate, and the same menus have been around for several releases.

Turn on Stacks: the closest thing to real auto arrange

Click an empty spot on the Desktop, then choose View > Use Stacks, or press Control-Command-0. Control-clicking (or right-clicking) the Desktop and picking Use Stacks works too.

Your loose files collapse into piles, grouped by kind by default: images in one stack, PDFs in another. The useful part comes next. When a new file lands on the Desktop, it goes straight into the matching stack, so a PDF saved from Safari joins the PDF stack without you pressing anything.

To change the grouping, click the Desktop and choose View > Group Stacks By. You'll see Kind, Date Last Opened, Date Added, Date Modified, Date Created and Tags (some versions also list Shared By). Pick a date option and files split into Today, Yesterday, Previous 7 Days, Previous 30 Days, and then one stack per year. If you already tag files, Tags is the most flexible choice.

Click a stack to expand it; its Down Arrow icon collapses it again. Option-click opens or closes all stacks at once. One tip: to peek inside without expanding, hover over a stack and swipe left or right with two fingers on a trackpad (one finger on a Magic Mouse).

What Stacks does not do is create folders.

Open the Desktop folder in a Finder window and you'll see the same flat list of files as before. Stacks also exist only on the Desktop, not in Finder windows, and folders sitting on the Desktop usually stay as separate icons rather than joining a stack.

Sort By: every icon visible, always in order

Some people hate piles. If you'd rather see every file, turn Stacks off (View > Use Stacks again), then choose View > Sort By and pick a rule.

The menu offers None, Snap to Grid, Name, Kind, Date Last Opened, Date Added, Date Modified, Date Created, Size and Tags. Pick anything other than None or Snap to Grid and Finder locks the icons onto its grid in that order, with new files slotting into the right position as they arrive. The trade-off is that you can no longer drag an icon to a custom spot. Choosing None gives you free placement back.

Most items in that menu have a keyboard shortcut, but don't rely on a cheat sheet for the exact keys. Open View > Sort By and check the shortcut shown next to each item on your Mac.

Snap to Grid is the odd one out. It reorders nothing and only makes each icon you drag drop into the nearest grid slot, which suits people who arrange by hand and just want straight rows.

Clean Up and Clean Up By

These are one-time commands, not settings.

View > Clean Up snaps every Desktop icon to the nearest grid position and removes overlaps. Clean Up By, in the same menu, sorts them once by a rule such as Name, Kind or Date Created. For just a few icons, select them, Control-click, and choose Clean Up Selection.

Then the next file you save lands wherever Finder decides, and the mess starts again. Treat Clean Up By as a reset button, not a system.

Fit the grid to your screen with Show View Options

Click the Desktop and choose View > Show View Options, or press Command-J. The Icon size slider usually starts at 64 x 64, and dropping it a notch fits noticeably more on a laptop screen. Below it, Grid spacing controls the gap between icons, and that gap applies to Sort By, Snap to Grid and Clean Up alike. You can also change Text size, move the Label position from bottom to right, or turn on Show item info for a second line with item counts for folders and stacks (or dimensions for images).

The Sort By pop-up here is the same setting as the View menu. With Stacks on, it generally sets the order of files inside each stack.

Auto arrange files in Finder windows

Finder windows behave like the Desktop with two differences: there are no stacks, and each folder can remember its own settings.

In icon view, open a folder, press Command-J and pick a rule from the Sort By pop-up. List view adds a shortcut of its own: click any column header to sort by it, and click again to reverse the order. Want folders listed above files when sorting by name? Go to Finder > Settings > Advanced and turn on "Keep folders on top: In windows when sorting by name."

Groups is the Finder window's answer to Stacks. Choose View > Use Groups or click the Group button in the toolbar, and files split into labeled sections by Kind, Application, Date Added, Size, Tags and more. While Groups is on, the View menu shows Group By instead of Sort By. Gallery view doesn't support it.

To apply one arrangement everywhere, set it up in any folder and click Use as Defaults at the bottom of View Options. Every folder using that view without custom settings of its own follows along. Column view has no such button.

So why does a folder sometimes ignore your defaults, or "forget" its layout? In most cases the answer is a hidden .DS_Store file. Finder usually keeps one inside each folder to remember that folder's view settings (sort order, icon positions, window size), and a folder with saved settings tends to keep them after you click Use as Defaults. Deleting that file usually sends the folder back to the default. To pin a view on one folder on purpose, select "Always open in" in its View Options, plus "Browse in" if subfolders should match.

Stacks vs Sort By vs Clean Up By

FeatureWhat it doesStays sorted as new files arrive?Where it worksBest for
StacksGroups loose Desktop files into piles by kind, date, or tagYesDesktop onlyA Desktop that collects screenshots and downloads every day
Sort ByLocks every icon onto the grid in one orderYesDesktop and icon view windowsPeople who want to see each file at a glance
Clean Up BySorts icons onto the grid onceNoDesktop and icon view windowsResetting a messy layout before you choose a real setting

Only the first two are auto arrange. Clean Up By looks identical for five minutes, which is why people think it "stopped working" by morning. So the real choice is Stacks or Sort By, and the deciding question is simple: do you want fewer things on screen, or everything on screen? Most people with a busy Desktop want fewer.

Common questions

Why does my Mac keep rearranging desktop icons? Usually because Sort By is set to None, so each icon has a remembered position instead of a rule. When you connect or disconnect an external display, or change resolution, those positions often stop fitting, and Finder tends to move icons without always putting them back. With Sort By set to a real rule (or Stacks on), the layout is rebuilt from that rule, so in most cases there's nothing to lose.

Can I auto arrange folders in every Finder window? Yes. In one folder, press Command-J, set your Sort By order, and click Use as Defaults. Folders with their own saved settings keep them, so fix the few stubborn ones individually.

Where did all my desktop icons go? Open System Settings > Desktop & Dock and look under Desktop & Stage Manager. Make sure Show Items: On Desktop is selected, plus In Stage Manager if you use Stage Manager. The same section controls whether clicking the wallpaper sweeps windows aside. Apple's current guide lists the options as Always on Wallpaper Click and Only in Stage Manager on Click (older versions called the setting "Click wallpaper to reveal desktop"). Pick the Stage Manager option if windows keep vanishing when you click empty space.

Do Stacks move my files into folders? No. Stacks, Sort By, Groups and Clean Up only change the display, and the files never leave the Desktop folder.

The setup to use

Turn on Stacks, grouped by Kind.

Then press Command-J on the Desktop and set Sort By to Date Added, so files inside each stack are ordered by when they arrived. In Finder, pick one view you like, set its Sort By order, and click Use as Defaults once. That covers the Desktop and every ordinary folder, and you can forget Clean Up exists.

When arranging isn't enough

Arranging has a ceiling. Stacks can make 400 files look like six tidy piles, but all 400 are still on your Desktop, and the PDF stack turns into a scroll you dread opening. At that point the fix is moving files, not displaying them differently.

Our guide to auto organizing files on Mac compares four ways to do that, including free ones built into macOS. One of them is Ornix, our menu bar app for macOS 14 or later. It watches a folder you choose and moves each new file into a subfolder by category as it arrives: Image, Video, Audio, Document, Compressed, Installer or Other. Because it's rule-based, the same kind of file always ends up in the same place. The free version covers one watched folder with real-time sorting, preview, Undo, scheduled cleanup and stats, and Pro is a one-time $4.99 purchase (no recurring fee) for unlimited folders.

Ornix menu bar app with history log showing sorted files

If the real pile lives in Downloads rather than on the Desktop, start with a one-time Downloads cleanup.

See how Ornix sorts a folder automatically →

Read next

Nov 5, 2026
Clocklet Is Out: A Mac Menu Bar Clock You Get to Pick
Nov 5, 2026
My Reactive Mac Widget Barely Reacted, So I Rebuilt It
Oct 17, 2026
How to Get Ambient Light While Watching YouTube on Mac