diff --git a/gtk2_ardour/sfdb_ui.cc b/gtk2_ardour/sfdb_ui.cc index 5088efacea..8b4f750670 100644 --- a/gtk2_ardour/sfdb_ui.cc +++ b/gtk2_ardour/sfdb_ui.cc @@ -55,6 +55,7 @@ #include "pbd/tokenizer.h" #include "pbd/enumwriter.h" #include "pbd/file_utils.h" +#include "pbd/natsort.h" #include "pbd/pthread_utils.h" #include "pbd/string_convert.h" #include "pbd/xml++.h" @@ -1440,7 +1441,13 @@ SoundFileBrowser::get_paths () vector filenames = chooser.get_filenames(); vector::iterator i; - std::map im; + struct SortByName { + bool operator() (std::string const& a, std::string const& b) const { + return PBD::naturally_less (a.c_str (), b.c_str ()); + } + }; + + std::map im; for (i = filenames.begin(); i != filenames.end(); ++i) { GStatBuf buf;