How to Sort by Date Modified (Descending) With Folders On Top?

In any version of Windows, when you sort items in a folder in descending order by Date Modified column, folders move to the bottom and files go to the top. What many users may want is folders to be sorted separately and remain at the top, and files below. The following is the usual behavior.

To achieve the sort order you prefer, first sort by Date modified column in descending order, and then do a secondary sort by Name. This is done by holding the SHIFT key and clicking on the Name column header. Thus folders remain at the top.

There is another option to accomplish the same result. Use the Date column instead of Date Modified. To add the Date column, right-click on the column header and click More…



These excellent tips were posted by otaru1921 and raxmus at the Microsoft forums thread Sort files by date with folders on top. Once sorted in Details view, you can change the views while preserving the primary and secondary sort orders.

However, note that Date and Date modified are not the same. In some cases, especially if there is meta data embedded in a file, Date column shows the last saved meta data, instead of the actual date you downloaded it. For example, here is an image file I downloaded, where the Date and Date Modified fields show different data. Date Modified shows the actual date I downloaded the file, but the Date field shows the last saved information from the file’s meta data.


One small request: If you liked this post, please share this?

One "tiny" share from you would seriously help a lot with the growth of this blog. Some great suggestions:
  • Pin it!
  • Share it to your favorite blog + Facebook, Reddit
  • Tweet it!
So thank you so much for your support. It won't take more than 10 seconds of your time. The share buttons are right below. :)

Ramesh Srinivasan is passionate about Microsoft technologies and he has been a consecutive ten-time recipient of the Microsoft Most Valuable Professional award in the Windows Shell/Desktop Experience category, from 2003 to 2012. He loves to troubleshoot and write about Windows. Ramesh founded Winhelponline.com in 2005.

8 thoughts on “How to Sort by Date Modified (Descending) With Folders On Top?”

  1. Finally, some instructions in plain English & so simple to do. That is after I nearly died of old age looking. The question is, why do Microsoft make life so hard for the end user by burying what should be a simple task in some stupid keyboard/click combination & not in a dropdown or right click menu.
    Thanks Ramesh, otaru1921 & Raxmus

    Reply
  2. But is there a way to make it KEEP this as the default sort on all folders? Like how Windows had it default since Win 3.1 through Win7 did? Or do you have to do this every single time.

    Reply
  3. Is there a way to have date modified of the file follow up through the folder structure so when you modify a file the folder is then modified and when you list by date modified the folders are listed amongst the files in chronological order?

    Reply

Leave a Comment