From 60aac9e89d0de6bb5dc26fa15f3bf04141ec7158 Mon Sep 17 00:00:00 2001 From: cervenansky Date: Wed, 24 Jul 2013 11:23:13 +0200 Subject: [PATCH] sort files in lexicographical order --- vv/vvQPacsConnection.cxx | 1 + 1 file changed, 1 insertion(+) 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)); -- 2.47.1