How to sort, group, and filter files & folders in Windows 10's File Explorer

It's important to know how to sort, group, and filter files and folders in Windows 10, especially if you work with a lot of them. No matter how hard you try to organize everything, it may be difficult at times to find a specific item or set of items. That's why File Explorer includes plenty of options for sorting, grouping, and filtering files and folders, using all kinds of criteria in Windows 10. This tutorial illustrates how to sort, group, and filter folders and files in Windows 10's File Explorer, so you can be more efficient in managing items and finding what you are looking for:

How to sort files and folders in Windows 10

Sorting files and folders reorders them in File Explorer based on the criteria you prefer. There are over 300 criteria available, and you can apply whichever you prefer. By default, in Windows 10, your files and folders are sorted in Ascending order by Name - or alphabetically - except for the Downloads folder, which is sorted in Descending order by Date modified - newest downloads are displayed on top. One option to begin sorting files and folders is to right-click or press-and-hold on a free area inside the folder to open a contextual menu. Then, hover or tap on Sort by to reveal the four main sorting options for that view template. Our folder uses the General items template, so we can sort it quickly by Name, Date modified, Type, and Size. Click or tap on any of the options, and the items are reordered on that basis.
The main criteria for General items folders
The main criteria for General items folders
You can reveal more options from File Explorer's View tab. In the Current view section, click or tap on Sort by.
Press Sort by from the View tab
Press Sort by from the View tab
Same as before, the sorting options displayed are specific to that folder's view template. To add more criteria to the Sort by menus, click or tap Choose columns.
More sorting options for General items folders
More sorting options for General items folders
If you're using the right-click Sort by menu, click or tap on More to add extra criteria.
Press for More sorting options
Press for More sorting options
This opens the Choose Details window, where only the four main criteria are selected. Click or tap the boxes of the sorting criteria that you would like to use, or select an entry and then click or tap the Show and Hide buttons on the right to add or remove that specific sorting option.
Check the boxes next to the criteria you want to use or select an entry and press Show
Check the boxes next to the criteria you want to use or select an entry and press Show
NOTE: You can also select any sorting option and then use the Move Up and Move Down buttons to reposition it in the list. After selecting your sorting criteria, click or tap OK.
Adjust your criteria and press OK
Adjust your criteria and press OK
TIP: Any criteria you add to the Sort by menus are also added automatically to the Group by menu discussed in the next section. You can also use the Add columns button from the Current view section of the View tab to expand or shrink the existing list of criteria. The button is greyed out unless you're using the Details view Layout.
Use Add columns to display more sorting options
Use Add columns to display more sorting options
Any new sorting option is now available both at the bottom of the Sort by list, in the right-click contextual menu, and as a separate column header - if you're using the Details view Layout. Click or tap on it to reorder things on this basis.
Select the desired sorting option from the right-click menu or by pressing on the corresponding column
Select the desired sorting option from the right-click menu or by pressing on the corresponding column
If you press the Sort by button from File Explorer's View tab, you can also find the new sorting option under the default ones. Click or tap on it, and the files are instantly rearranged based on your selection.
Selecting the new sorting option rearranges your files
Selecting the new sorting option rearranges your files
Regardless of the sorting option you're using, the sorting results can be displayed in either Ascending or Descending order. For instance, when sorting by the default Name option, Ascending means the files and folders are arranged from A to Z, while Descending sorts items from Z to A. If you want to reverse the order for your criteria, you can click or tap (again) on its column header, or check the appropriate option from the right-click Sort by menu, as seen below.
Select to sort items in Ascending or Descending order
Select to sort items in Ascending or Descending order
You can also choose to display items as Ascending or Descending by pressing the Sort by button and selecting the order you prefer.
Sort items in Ascending or Descending order from the ribbon
Sort items in Ascending or Descending order from the ribbon
Alternatively, accessing the Sort by menu and clicking or tapping on the active sorting option also reverses the order of the items.

How to group files and folders in Windows 10

You can also group files and folders using the different criteria in Windows 10's File Explorer. This organizes all the items in a folder, breaking them into separate sections, based on the detail you choose. By default, items in Windows 10 are not grouped into any category, the only exceptions being:
  • Downloads - grouped in Descending order by Date modified to help you find the newest downloaded items on top.
  • This PC - grouped by Type in Ascending order. This location has different sorting and grouping alternatives.
  • Network - grouped in Ascending order by Category. This location also comes with different sorting and grouping options than other folders.
The Downloads folder is grouped by Date modified
The Downloads folder is grouped by Date modified
Right-click or press-and-hold on a free area inside the folder whose contents you want to group. In the contextual menu, hover or tap on Group by to reveal the four main grouping options for that folder. The categories shown differ based on each folder's view template. Click or tap on any of the displayed criteria to group items on that basis.
Click or tap on any of the criteria to group items
Click or tap on any of the criteria to group items
For instance, we want to group the contents of the media files folder by Type. Clicking or tapping on Type offers a different perspective over the files in our media folder, as seen below.
Sort media content by Type
Sort media content by Type
You can also group files and folders from the View tab in File Explorer. Click or tap on the Group by button from the Current view section.
Use the Group by button from the View tab
Use the Group by button from the View tab
Click or tap on any of the criteria from the dropdown menu to group items on that basis. When a grouping option is selected, a new entry becomes available in the Group by menus: (None). Clicking or tapping on it cancels any grouping, and items are shown the usual way again.
Press None to stop seeing different sections
Press None to stop seeing different sections
As soon as you group items, the Ascending and Descending options are no longer greyed out, and the Ascending option is enabled by default. For instance, when we grouped our media files by Type, the groups were shown in alphabetical order (JPG, MP3, MP4, and PNG). Selecting Descending reverts the order - PNG, MP4, MP3, and JPG.
Choose between Ascending and Descending order
Choose between Ascending and Descending order
The same options are also available from the right-click Group by menu. For additional grouping criteria, click or tap on More or use the Add columns button - only active in Details view.
Add other grouping criteria
Add other grouping criteria
You can also use the Group by button from the View tab, and then press Choose columns.
Click or tap <em>Choose columns</em> for more criteria
Click or tap <em>Choose columns</em> for more criteria
Since any new criteria you add in the Group by menus are also added automatically to the Sort by menu, the two also share the Choose Details window discussed in the previous section. Check any of the options you want to add as grouping criteria and press OK to find them in the Group by menus.
Select the criteria you want to use
Select the criteria you want to use
TIP: Keep in mind that grouping items also sorts them by the same attribute automatically. However, you can first group items by one attribute, and then sort them by a different one to see them in a certain order within each grouping section. Clicking or tapping on any group's header selects that section's entire content.
Press a header to select the items grouped in it
Press a header to select the items grouped in it
Double-clicking or double-tapping on a header toggles between collapsing or expanding the section. You can do the same thing by clicking or tapping on the arrow button next to a header.
Press the arrow button next to a header to collapse or expand the group
Press the arrow button next to a header to collapse or expand the group
If the grouping option you select is incompatible with some of the items in your folder, they appear in a section named Unspecified. We grouped our media folder by Authors, and the files without a designated author appeared in a separate Unspecified group.
Items that don't fit the grouping option are displayed under Unspecified
Items that don't fit the grouping option are displayed under Unspecified

How to filter files and folders in Windows 10

In Windows 10, File Explorer can filter the contents of a folder if you're using the Details view. Similar to the grouping feature, filtering folders and files helps you narrow down the items you need by only showing the content that fits your criteria. The Details view shows several columns, each displaying more information about the items in that folder (Name, Date modified, Type, Size, etc.). If you hover the cursor over a column header, you can see a small down arrow shown to its right. Click on it. For touchscreens, tap on the right side of a column's header.
Click or tap (on the arrow) to the right of a column header to filter by file Type
Click or tap (on the arrow) to the right of a column header to filter by file Type
To understand filtering in File Explorer's Details view, let's see how to filter a folder to display only PNG files in Windows 10. Pressing the down arrow next to Type reveals a dropdown menu where the filtering alternatives are the type of files included in the folder. Select the items you want to see - in our case, PNG File.
Filter a folder to only display PNG files
Filter a folder to only display PNG files
When you're done, the only contents shown are the ones that match your selection. File Explorer is now displaying the filtering criteria in the address bar, and the down arrow is replaced by a checkmark, indicating a filter is currently applied.
The filtering criteria are displayed, and a checkmark replaces the down arrow
The filtering criteria are displayed, and a checkmark replaces the down arrow
You can continue to apply filters using any of the Details columns, to further narrow down the files in the folder. Use the Add columns button in the Current view section from File Explorer's View tab to reveal a menu where you can check the columns you want and even Choose columns to include additional ones.
Press Add columns for additional filtering options
Press Add columns for additional filtering options
Pressing Choose columns opens the same Choose Details window discussed in the first section of this tutorial. Use it to select any other categories you want to filter by.
The Choose Details window lets you add more columns
The Choose Details window lets you add more columns
If you enable many Details columns, press the "Size all columns to fit" button to change their width according to their contents.
Click or tap on Size all columns to fit
Click or tap on Size all columns to fit
Right-click or press-and-hold on any column header to reveal the "Size Column to Fit" option. You can also add additional columns or "Size All Columns to Fit" from the same contextual menu.
Use Size Column to Fit or other options from the contextual menu
Use Size Column to Fit or other options from the contextual menu
There are several ways to remove filters from your folder in File Explorer. If you want to remove all the filters applied, click or tap on the folder's name in the address bar.
Press the folder's name in the address bar to remove filters
Press the folder's name in the address bar to remove filters
You can also click or tap on the checkmark to reveal the available filters, and then uncheck the box next to the filter(s) you want to remove.
Remove a filter from the same menu you applied it
Remove a filter from the same menu you applied it
Finally, press the Back button to remove the filter you added last. For multiple filters, click or tap on Back to remove each one. Press Forward to reapply a filter.
Use Back and Forward to remove or reapply filters
Use Back and Forward to remove or reapply filters
To learn more about using File Explorer efficiently, read 15 ways to improve File Explorer or Windows Explorer in Windows (all versions).

Which of the illustrated options fits you best?

As you can see, File Explorer provides some powerful tools for sorting, grouping, and filtering your files and folders. Try out the options illustrated in this tutorial to see what fits you best. You might just need to sort through a messy folder, but filtering could be required if it has more files than expected. Either way, you should be able to organize and locate files and folders a lot faster. Before you close this tutorial, let us know which of the options fits you best and why. Leave a comment below.
Discover: Productivity Apps Files Recommended Tutorials Windows

Discussion (13)

  1. Muhammad Nur Aliff bin Saji
    Muhammad Nur Aliff bin Saji

    i know all the thing you said.. but how do i set it by default to overall foldering system? example i want the each on every folder is sorting by type, but the column by name remain on the left. usually i need to set it every time i open the folder. hopefully will have some ways..

  2. Sekula
    Sekula

    How to add your own column, and write own attribute for each folder (row)?

  3. Mianna
    Mianna

    I’m having a big problem with Windows Explorer in Windows 7 on my husband’s computer and File Explorer in Windows 8.1 on my computer. I wonder if you can help me with it?

    There are options to add extra columns in the detail view. When you click ‘more’, you see tons of extra column options (e.g. flags, priority, importance, rating, label, task status, mood, incomplete, is completed, free/busy status, etc.). But I can’t do anything with any of them. They’re all completely useless. E.g. I can’t even put flags beside anything I consider as important in order to sort them so they’ll show at the top of my file list in a folder. Know what I mean?

    I have tried to click on the little arrow to the right of each column name in order to see options there and there’s absolutely nothing except one box I can check and it only says “unspecified”. Checking the box for that does nothing at all.

    If we can add flags and stars and such to emails (in Gmail and Windows Live Mail, for example), then why can’t we do it in Windows Explorer or File Explorer in order to have greater sorting/grouping options?? Please, what am I doing wrong? Why would these columns not be functioning for me? I can’t even put a star rating on a song file. I remember I used to be able to do that, at least, in XP and perhaps in Win 7 on my old laptop a couple of years ago. But I can’t succeed to do it now on our newest Win 7 and Win 8.1 computers. I’ve tried to google for answers (spent hours), and am completely stumped. Help?

  4. RichardL
    RichardL

    What really annoys me about W7 Explorer is the right pane not following the treeview navigation. Can anyone fix that?

    As for the annoying search pull-downs on each column I’ve learned to approach the column dividers from the right to miss them.

  5. GV
    GV

    How do I disable the Advanced Filtering if I want to use Details View? I am trying to figure out how to stop it from popping up when I use my keyboard (i.e. Tab and Shift+Tab) to navigate through files and directories on my computer. For example, it says “0-9, A-H, I-P, Q-Z” as if I need to ever filter by those categories! There are special filters now under date modified, type, as you laid out above. Windows Explorer functions like Excel now, and sometimes it just makes it hard to do my job.

    1. Mick
      Mick

      Has anyone EVER figured out how to disable this crap? I live in the Details View, but I absolutely hate having the small arrow pop up when I move my mouse along the top of the column header to re-size the column…

      I care nothing for search filters or sort filters… This never existed in XP…

      1. Davo
        Davo

        Agreed. However, iff your goal is to auto-size all the columns in Details View you can avoid the “small arrow pop up” by avoiding mouse use. Use Control+NumPad+ to auto-size ALL columns while focused on Windows Explorer.

        Long live the speedy keyboard, disdain the pokey slow mouse.

        I rarely check my Yahoo email. Try the same name at Gmail.

  6. Joshua
    Joshua

    An VERY important hidden feature that’s not mentioned on here, that definitely should be, is multiple sort by criteria!

    In details view, after selecting the first sort by criteria — either by clicking a column header or using the menu — you can then SHIFT-click an additional column to sort by.

    This is useful if you want to group by date, then sort by date descending. If you shift-click name, to alternative getting folders at the top or bottom of each group. Or sort images by time, then by name; or type, then by date. Very, very handy!

    I say it’s a hidden feature because nothing in the UI exposes that it exists.

    1. Ciprian Adrian Rusen
      Ciprian Adrian Rusen

      Thank you for sharing this.

  7. markinboone
    markinboone

    File filtering is one of those almost-but-not-quite microsoft features… If you filter on a file type: say, check the box by .JPG, then move all these file types to another folder or delete them, then the list of file types no longer includes .JPG, so you can’t uncheck it to clear the filter. You’re left with an empty file list and no apparent way to clear the filter. Eventually by clicking all the check boxes, then unclicking all the checkboxes the filter is removed. But if this folder has dozens of file types, that’s annoying. You can select another folder, then come back to the previously filtered folder, but again, this is annoying and not intuitive. The guy at microsoft who puts the (All) option in lists must have been out the day they put this one together, along with the guy who knows how to put a context menu item in place (like Clear Filter).

  8. Samsul
    Samsul

    Is it possible to filter to current selection? I.e. make a selection by using shift/ctrl clicking and then hide the rest so you can sort your selection in different ways. In WinXP at least I could make a selection and sort (no filtering, but the selection highlights remain). In Win7 the selection highlights disappear as soon as I click a category header (such as ‘Type’) to sort. This wouldn’t be a problem if I could filter the selection before I click a header. Hope you get what I mean.

  9. Anonymous
    Anonymous

    Is it possible to set a default “Sort Filter” for a folder in File, Open dialogs in Windows 7? Even though it always opens up the same folder (“My Documents”), it ALWAYS opens up sorted by Name by default, regardless of how I try to change the filters to Sort By Date Modified (Descending), Group By File Type. Annoying.