Forum Discussion
Subfolders not staying on top in one particular OneDrive directory only (web based)
In OneDrive for Business (web view) the way folders and files are sorted is controlled by the “Sort” and “Group by” settings in that particular folder view. Normally:
- With Sort → Name (ascending) and Group by → None, folders are pinned at the top followed by files.
- If Group by or Sort by Item type got changed, or if the view was customized, folders can become mixed in alphabetically with files — which is what you’re seeing in that one subdirectory.
How you can maybe Fix It (in the web app)
Go into the problem directory in OneDrive Online.
On the toolbar above the file list, click Sort.
Ensure it’s set to Name → Ascending.
Then click View options (grid/list icon → top-right) → Group by → set to None.
If it still mixes, check All documents → Manage view → Edit current view and make sure “Folders” is set to show first.
If It Still Misbehaves
Sometimes a folder has a “custom view” stuck to it (SharePoint behavior).
- In that case, go to All documents → Return to classic view (if available), reset sorting/grouping there, and return.
- Or create a new view for that folder:
- Click All documents → Save view as → give it a name.
- In that view, reapply the correct sort/group settings.
- Make it the default for that folder.
Why only this one subdirectory?
Because OneDrive/SharePoint can remember per-folder view settings. So one subfolder might have been accidentally toggled into a “flat alphabetical sort” view (files and folders all mixed), while the rest are still in the default “folders first” mode.
My answers are voluntary and without guarantee!
Hope this will help you.
Was the answer useful? Mark as best response and like it!
This will help all forum participants.