improve file sort order
add new showPerms opt to show/hide file permissions