I created a document library in SharePoint 2010 and created many files and folders. In the default view (All Documents) the folders display first, followed by files (just as Windows Explorer does).
Then I disabled "new folder" command in library properties by setting Make "New Folder" command available? = No. After that folders are now mixed with files in all views for this document library.
I tested it on various libraries and it always shows this strange behavior. How do I make folders always displays before files?