One of the new changes I noticed with my Windows 8.1’s Windows Explorer is that when I sort folders (directories) by modified date the files appears before the folders. This wasn’t the behavior it was back in Windows 7, the folders always appear on top of the files, at least it wasn’t what I was remembering. I poked around to see if there are new options in Windows 8.1 that might lead to this subtle change. Here is a solution I found to get around with this problem.
Use Date Instead of Date Modified Attribute For Directory Column Type
Notice when you view a directory in Windows 8.1 in a detailed view, you will get the option to sort the folder by “Date modified”. When you do use this attribute to sort the folders, all the files appear before the folders. If you’d like to keep the folders show before the files, don’t use “Date modified” attribute, but instead use “Date” attribute. Here is how.
Go to View tab > Sort by > Choose columns …
Scroll down to the list, find the “Date” type, select and click OK.
Now go to “Group by > Choose columns …”
Uncheck “Date modified”, check “Date”
Now go back to the Windows Explorer, click sort “Date” column. Notice, you now see all the folders appear before the files in a directory.
The catch is, if you do it this way as above, the change only appear to be applied to the directory you are in. There are other directories and folders out there still have the previous unchanged view properties. But hey, at least this is a workaround, let us know if you have a better way to resolve this issue.
/Update on May 31, 2017/
Thanks to the reader Shelku who shared an even better solution. You can click the Date Modified tab first then shift-click the Name tab to get the current list ordered in Date but still with the folders listed at the top.
I found this other solution:
– Click on Date Modified (folders will be on bottom)
– Then Shift + click on Name. It will fix the sort to put folders first
Then you can click on the View > Options to bring up the Folder Options dialog. On the View tab, you can click ‘Apply to Folders’ to have your view apply everywhere.
That’s really clever. Thanks for sharing.
Simple and Neat!
Agreed with the other commentors… this Shift-click solution is more neat and clean. I really like the reminder to use “Apply to Folders” to apply everywhere.
I can’t do it. Can someone give me a more detailed explanation. I’m trying to do it on Windows 10, x64. First, I choose Sort by > Date Modified (Descending). Then I choose Sort by > Name (while holding the shift button down).???
Sort by Date column first, and then Shift + left-click the Name tab which will reorder the list to put the folders on top.
i still don’t get it, what is ‘the Name tab’ ? Maybe a picture will help.
I posted an update at the end of the post. Check it out.
Excellent, thank you!
The most convenient and straight forward way to always keep the folders on the top of the list within the Windows Explorer regardless of the data modified sort.
You have no idea how annoying this issue was for me, you made it so so easy to fix! Thank you!
Have an updog 😉
Great! Thank you!
Another option: this problem only occured when I approach my folders via the drive (e.g., C: -> my documents). When I approach my folders via Libraries -> documents there is no problem with sorting on date and keeping folders on top.
thank you sooo much,,,,,,,,, it works
Thank you for this explanation! just going through these step allowed me to troubleshoot the problem in the “Group By” setting.
You fixed a tremendously annoying problem.
Wonderful solution – thanks for sharing!
Thank you! This has been bugging me so much.
Thank you so much., perfect solution and worked like a charm.
Be Well
@Shelku: This solution of yours is wonderful! It still stands – and keeps helping people, even though it was posted in 2014!
Thanks for the tip. Very helpful!!! In Windows 10, everything worked for me except I can’t find the “Apply to Folders” option. Any suggestions? Steve
Just tried this in windows 10 and it worked fine except for one thing. The folders which now correctly display at the top are no longer alphabetically listed. They are listed in descending order by date modified. Not a big deal except that every time a folder is modified, the order it is listed will also change. Is there any way to keep the folders at the top but retain their alphabetical order?