TechBuzzPro

File Explorer Keeps Resetting Sort Order? Fix It

· 5 min read · Windows & PC

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

If File Explorer keeps resetting your sort order (for example, you sort by Date modified and it jumps back to Name), the cause is usually a corrupted or misconfigured Windows setting called Folder View Settings. The fix is to reset those settings or apply your preferred sort to all folders of the same type. Here's the step-by-step solution.

What You'll Need

  • Administrator access to your Windows PC (to reset folder options).
  • Your preferred sort order in mind (e.g., Date modified, descending).
  • Patience – the fix involves a few settings and a possible restart of File Explorer.

Step-by-Step

Method 1: Apply Your Sort to All Folders of the Same Type

  1. Open File Explorer (Win + E).
  2. Navigate to any folder that keeps resetting (e.g., Downloads or Documents).
  3. Set the sort order you want – for example, right-click empty space, choose Sort by > Date modified, and then click Descending if needed.
  4. Also set the view style (e.g., Details, List) because the sort is tied to the view template.
  5. Click the View tab on the ribbon at the top.
  6. Click the Options button (on the far right) to open Folder Options.
  7. In the View tab, click Apply to Folders.
  8. A confirmation dialog appears – click Yes.
  9. Click OK to close the dialog.
  10. Now every folder of the same template (e.g., General Items) should use that sort order. If it still resets, proceed to Method 2.

Method 2: Reset Folder View Settings

  1. Open File Explorer (Win + E).
  2. Click the View tab on the ribbon.
  3. Click Options (or Change folder and search options on older Windows).
  4. Go to the View tab.
  5. Click Reset Folders.
  6. Click Yes when prompted to reset all folder views to default.
  7. Click OK to close.
  8. Now re-apply your preferred sort to the folder that was misbehaving (right-click > Sort by > choose your option).
  9. Repeat Method 1 steps 5–9 to apply that sort to all folders of the same type.

Method 3: Clear the Folder View Cache (if the above fails)

  1. Press Win + R, type regedit, and press Enter. (This opens the Registry Editor – be careful.)
  2. Navigate to: HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell
  3. Look for a subkey named Bags and another named BagMRU. These store folder view settings.
  4. Right-click Bags and choose Delete. Confirm deletion.
  5. Right-click BagMRU and choose Delete. Confirm deletion.
  6. Close Registry Editor.
  7. Restart File Explorer: right-click the taskbar and choose Task Manager, find Windows Explorer, right-click it, and choose Restart.
  8. Now open a folder and set your sort order again. It should stick.

Common Mistakes

  • Forgetting to set the view style. The sort order is saved per view template (e.g., Details vs. Tiles). If you set sort in Details but then switch to Tiles, the sort may appear to reset.
  • Applying to folders only after sorting one folder. You must first set the sort on a folder, then click Apply to Folders – otherwise it applies the default sort.
  • Deleting the wrong registry keys. Deleting the entire Shell key can cause bigger issues. Only delete Bags and BagMRU as shown.
  • Not restarting File Explorer. Some changes only take effect after a restart of Explorer.

Tips

  • Use the Apply to Folders feature immediately after setting your sort – it saves the current view and sort for all folders of that template.
  • If you have many different folder types (e.g., Pictures, Music), you may need to apply the sort separately for each type.
  • Grouping can also affect sort order. If you have grouping enabled, the sort may appear to 'reset' because items are grouped by a different field. To disable grouping: right-click empty space > Group by > (None).
  • Consider using the Column headers in Details view to sort – clicking a header sorts by that column and usually sticks better than right-click sorting.

Troubleshooting

If the sort order still resets after trying all methods:

  • Check for third-party software that might be interfering, such as 'Folder Size' tools or cloud sync apps that modify folder properties. Temporarily disable them to test.
  • Run a system file check: open Command Prompt as administrator and run sfc /scannow. This repairs corrupted Windows files that might affect settings.
  • Create a new user profile as a test. If the issue disappears in a new profile, your current profile is corrupted. You can then migrate your files.
  • Check if the issue is specific to one folder – if only one folder resets, it might have a corrupted view cache. Delete just that folder's entry in the registry under Bags (look for a subkey with the folder's path).

Frequently Asked Questions

Why does File Explorer keep resetting my sort order?

Windows saves folder view settings (including sort) in the registry. If that data gets corrupted, or if a folder has a different template than you think, the sort may revert to default.

Will deleting the Bags registry key affect my other settings?

It will reset all folder view preferences (like icon size and column widths) to default, but it won't delete any files or affect other Windows settings. You'll just need to reapply your preferred views.

Does this work on Windows 10 and Windows 11?

Yes, the steps are essentially the same. The ribbon interface looks slightly different, but the View tab and Options button exist in both.

Can I set a default sort order for all folders at once?

Yes, using the Apply to Folders button after setting your sort on one folder. That applies to all folders of the same template (e.g., General Items). You may need to do it for each template type.

Why does my sort order reset after I restart my PC?

This usually indicates a corrupted view cache. The registry reset (Method 3) is the most effective fix. Also, make sure you have applied the sort using the Apply to Folders method.

Is there a way to prevent File Explorer from remembering sort order at all?

No, Windows always tries to remember. If you want it to always use the same sort, you can set a folder view and apply it to all folders – that's the closest you can get.