Sort the file list we get from Readdir before generating function names