properly sort port-names

This commit is contained in:
Robin Gareus 2016-07-14 16:47:27 +02:00
parent 311a5f1462
commit 8444837b71
3 changed files with 6 additions and 3 deletions

View file

@ -30,6 +30,7 @@
#include <boost/shared_ptr.hpp> #include <boost/shared_ptr.hpp>
#include "pbd/natsort.h"
#include "ardour/audio_backend.h" #include "ardour/audio_backend.h"
#include "ardour/dsp_load_calculator.h" #include "ardour/dsp_load_calculator.h"
#include "ardour/system_exec.h" #include "ardour/system_exec.h"
@ -413,7 +414,7 @@ class AlsaAudioBackend : public AudioBackend {
{ {
bool operator ()(const AlsaPort* lhs, const AlsaPort* rhs) const bool operator ()(const AlsaPort* lhs, const AlsaPort* rhs) const
{ {
return lhs->name () < rhs->name (); return PBD::naturally_less (lhs->name ().c_str (), rhs->name ().c_str ());
} }
}; };

View file

@ -30,6 +30,7 @@
#include <boost/shared_ptr.hpp> #include <boost/shared_ptr.hpp>
#include "pbd/natsort.h"
#include "ardour/audio_backend.h" #include "ardour/audio_backend.h"
#include "ardour/dsp_load_calculator.h" #include "ardour/dsp_load_calculator.h"
#include "ardour/types.h" #include "ardour/types.h"
@ -470,7 +471,7 @@ class CoreAudioBackend : public AudioBackend {
{ {
bool operator ()(const CoreBackendPort* lhs, const CoreBackendPort* rhs) const bool operator ()(const CoreBackendPort* lhs, const CoreBackendPort* rhs) const
{ {
return lhs->name () < rhs->name (); return PBD::naturally_less (lhs->name ().c_str (), rhs->name ().c_str ());
} }
}; };

View file

@ -30,6 +30,7 @@
#include <boost/shared_ptr.hpp> #include <boost/shared_ptr.hpp>
#include "pbd/natsort.h"
#include "ardour/types.h" #include "ardour/types.h"
#include "ardour/audio_backend.h" #include "ardour/audio_backend.h"
#include "ardour/dsp_load_calculator.h" #include "ardour/dsp_load_calculator.h"
@ -455,7 +456,7 @@ class DummyAudioBackend : public AudioBackend {
{ {
bool operator ()(const DummyPort* lhs, const DummyPort* rhs) const bool operator ()(const DummyPort* lhs, const DummyPort* rhs) const
{ {
return lhs->name () < rhs->name (); return PBD::naturally_less (lhs->name ().c_str (), rhs->name ().c_str ());
} }
}; };