use filetype while sorting