]> Creatis software - clitk.git/commitdiff
sort files in lexicographical order
authorcervenansky <frederic.cervenansky@creatis.insa-lyon.fr>
Wed, 24 Jul 2013 09:23:13 +0000 (11:23 +0200)
committercervenansky <frederic.cervenansky@creatis.insa-lyon.fr>
Wed, 24 Jul 2013 09:23:13 +0000 (11:23 +0200)
vv/vvQPacsConnection.cxx

index 6033825c0a01ee407e399cbed9a28108e3afad3d..ef9690cf304fbd315628b9700d94e1fc98e7be3b 100644 (file)
@@ -386,6 +386,7 @@ void vvQPacsConnection::on_importButton_clicked()
                gdcm::Directory theDir;
                theDir.Load(path.toStdString().c_str());
           m_files =    theDir.GetFilenames();
+               std::sort (m_files.begin(), m_files.end()); // make sure names are in lexicographical order
           
           accept();
          setCursor(QCursor(Qt::ArrowCursor));