When defining sort criteria for a view, there is an option: Sort only by specified criteria (folders may not appear before items).
In my library, I have a view that is set to sort only by Name (for use in forms)
in ascending order, and the Sort only by specified criteria option is not selected, but it is still sorting the folders along with everything else. I want the folders to be at the top of this view.
According to this TechNet post and this article, which were the top two results on my Google search for sharepoint Sort Only by Specified Criteria
, when the box is unchecked, SharePoint should always display folders first.
And in case the issue was related to my choice of sort field, I also tried sorting by the other variations of Name fields, and also by Modified; in all cases, my folders are being sorted along with the other documents regardless of whether or not the Sort Only by Specified Criteria option is checked.
I have set no grouping, no filter, and Default style, and there are fewer than 5,000 items in the library.
Why won't my folders stay at the top of the library view?