Fixes #431
Tree is now sorted with folders first, then files.