I ran into a problem getting the folders to appear together on top sorted by name following by all 'regular files' also sorted by name right after them, so:
you'll have to include a small jquery plugin in 'filemanager/index.html' called:
tinysort then in 'filemanager.js' on line 816 (see line here:
https://github.com/simogeo/Filemanager/blob/master/scripts/filemanager.js#L816) just after:
- callback(result);
add this:
- $("ul.jqueryFileTree").tsort("li.directory",{order:"asc"});
- $("ul.jqueryFileTree li").not(".directory").tsort("a",{order:"asc"});
now,
I'm sure its not the best way to achieve this effect so, if someone has a better way please share it!