sort the list of files so we can guarantee ordering just by naming