I also had the Folder on Top issue but only on one folder (my “Downloads” folder). Interestingly, once I reduced the number of objects (i,e, Files and Folders) in my Downloads folder to below 1000 the problem resolved itself. Folders are now displayed at the top as expected.
Is there a physical limit to the number of folders and files in any one folder that would stop Total Finder from sorting as expected.