Sort the list of files before adding them to the SD card