Yes, maybe, I have to take a closer look at your sorting function, see here:
“Note: it may take several seconds to list the gif files”