From: Eduardo DAVILA Date: Wed, 5 Jun 2013 14:50:26 +0000 (+0200) Subject: 2023 Bug FilesFromDirectory order files X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=141d38374c797cf2055fe20e3b621bc17d20cb3e;p=bbtk.git 2023 Bug FilesFromDirectory order files --- 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; }