This code dynamically lists the (video) files in a directory, loads them into an array, sorts them by name (without the extension), and then displays them with a thumbnail link
to the actual (video) file. It also displays the size of the files in kb. I wrote this after giving up on the other array and sort code that I'd seen. None of them seemed to do
all of this at once. Note that the .jpg thumbnails that link to the movies all have the same prefix name (the substring is identical). This allows the link to work. A simple
text link would have done the same thing.