From: cervenansky Date: Wed, 24 Jul 2013 09:23:13 +0000 (+0200) Subject: sort files in lexicographical order X-Git-Tag: v1.4.0~2^2~11 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=60aac9e89d0de6bb5dc26fa15f3bf04141ec7158;p=clitk.git sort files in lexicographical order --- diff --git a/vv/vvQPacsConnection.cxx b/vv/vvQPacsConnection.cxx index 6033825..ef9690c 100644 --- a/vv/vvQPacsConnection.cxx +++ b/vv/vvQPacsConnection.cxx @@ -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));