.sort() on files list
better image/video types regexes