sort files directories first then files
fix library app link
Merge branch 'lib-files-fix'