How to sort folders in SharePoint document library?

sort folders in SharePoint document library

In SharePoint, we can create a document library to store documents. And to organize documents we can create folders inside a document library in SharePoint 2013 or SharePoint 2016 or SharePoint Online. Recently while working in a SharePoint 2010 application, we created a document library in SharePoint and created various folders inside it. Now as per the requirement we need to sort folders in the document library. Here we will discuss how we can sort SharePoint 2010 document library folders.

Professionals may search for: SharePoint document library folder sort order, SharePoint sort folders alphabetically, SharePoint document library sort folders, SharePoint document library sort folders

For this, we have to first create a custom “Folder” content type in SharePoint 2010. Follow the steps:
1. Go to Site Settings. See in fig

 Custom Ordering by Folder in Document Library for SharePoint 2010
Custom Ordering by Folder in Document Library for SharePoint 2010




2. Click on Site Content Types. See in fig

sharepoint document library folder sort order
sharepoint document library folder sort order

3. Now click on Create and give the name, what you want. In Parent content type = “folder content type” and then “folder”. See in fig.

sharepoint sort folders alphabetically
sharepoint sort folders alphabetically

4. Create a new site column to be associated with this new content type. Call it “folder order” and make it a number column. See in fig

sharepoint document library sort folders
sharepoint document library sort folders
SharePoint document library sort folders
SharePoint document library sort folders

5. Now go on your library settings and click on advanced settings. Change “allow management of content types” to yes. See in fig

SharePoint online document library sort folders
SharePoint online document library sort folders

6. In the library settings “content types” section, click to add an existing content type, and pick that created by you call “My new folder”. See in fig

Sort by Folder in Document Library for SharePoint 2010
Sort by Folder in Document Library for SharePoint 2010
sharepoint 2013 document library folder sort order
sharepoint 2013 document library folder sort order

7. Now in library advanced settings, change Display “New Folder” command on the New menu to No. See in fig

sharepoint 2013 sort folders alphabetically
sharepoint 2013 sort folders alphabetically

8. Now add the existing site column in your library. See in fig

sharepoint online document library sort folders
sharepoint online document library sort folders

9. Now in the “new” document drop-down box there is the ability to create a new folder, and that new folder has a “Sort order” column. See in fig

sharepoint 2013 document library sort folders
sharepoint 2013 document library sort folders

10. Now add the column with the order. See in fig.

sharepoint 2016 document library sort folders
sharepoint 2016 document library sort folders

11. Now see the folder structure before the sort order.

sharepoint 2010 document library sort folders
sharepoint 2010 document library sort folders

12. Now sort the folder by folder order column from document library settings. See in fig

SharePoint online document library sort folders
SharePoint online document library sort folders

13. Now see the folder structure sorted by folder. See in fig

How to sort folders in SharePoint document library?
How to sort folders in SharePoint document library?

Here we discussed how to sort folders in SharePoint document library. The same way we can sort folders in SharePoint 2010 document library, sort folders in SharePoint 2013 document library, sort folders in SharePoint 2016 document library or sort folders in SharePoint online document library.


You May Also like the Following SharePoint Online Tutorials:

About Navneet Singh

I am Navneet Singh, Working at C3it software solutions pvt. ltd. in Pune. My core skills are SharePoint 2013, Office 365, SharePoint 2010, SharePoint Designer, SharePoint Designer Workflow, Nintex Workflow, Infopath, Webpart, CSOM/SSOM, Power-shell, C#, ASP.NET and SQL Server.

View all posts by Navneet Singh →