sort directories by modification date, hide dotfiles and invalid files