allowing sorting the gallery thumbnails by date taken