From 141d38374c797cf2055fe20e3b621bc17d20cb3e Mon Sep 17 00:00:00 2001 From: Eduardo DAVILA Date: Wed, 5 Jun 2013 16:50:26 +0200 Subject: [PATCH] 2023 Bug FilesFromDirectory order files --- packages/std/src/bbstdFilesFromDirectory.cxx | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/packages/std/src/bbstdFilesFromDirectory.cxx b/packages/std/src/bbstdFilesFromDirectory.cxx index e8d919c..b85757f 100644 --- a/packages/std/src/bbstdFilesFromDirectory.cxx +++ b/packages/std/src/bbstdFilesFromDirectory.cxx @@ -214,6 +214,21 @@ int FilesFromDirectory::Explore(std::string const &dirpath, bool recursive) } #endif + std::string tmpString; + int i,ii,sizeFilenames = Filenames.size(); + for (i=0; iFilenames[ii]) + { + tmpString=Filenames[i]; + Filenames[i]=Filenames[ii]; + Filenames[ii]=tmpString; + } // if + } // for ii + } // for i + return numberOfFiles; } -- 2.47.1