diff options
author | Robin Gareus <robin@gareus.org> | 2016-07-14 16:47:27 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-07-14 16:52:43 +0200 |
commit | 8444837b71d435b6354854d4500e2d092fff3c44 (patch) | |
tree | ad8ef6a89f865d93df63ab635404432ea6af36f7 /libs/backends | |
parent | 311a5f1462c840ae7d6faa726e29f4a5429eda93 (diff) |
properly sort port-names
Diffstat (limited to 'libs/backends')
-rw-r--r-- | libs/backends/alsa/alsa_audiobackend.h | 3 | ||||
-rw-r--r-- | libs/backends/coreaudio/coreaudio_backend.h | 3 | ||||
-rw-r--r-- | libs/backends/dummy/dummy_audiobackend.h | 3 |
3 files changed, 6 insertions, 3 deletions
diff --git a/libs/backends/alsa/alsa_audiobackend.h b/libs/backends/alsa/alsa_audiobackend.h index f7f7f693bb..d8dfb31725 100644 --- a/libs/backends/alsa/alsa_audiobackend.h +++ b/libs/backends/alsa/alsa_audiobackend.h @@ -30,6 +30,7 @@ #include <boost/shared_ptr.hpp> +#include "pbd/natsort.h" #include "ardour/audio_backend.h" #include "ardour/dsp_load_calculator.h" #include "ardour/system_exec.h" @@ -413,7 +414,7 @@ class AlsaAudioBackend : public AudioBackend { { 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 ()); } }; diff --git a/libs/backends/coreaudio/coreaudio_backend.h b/libs/backends/coreaudio/coreaudio_backend.h index 643604030b..d37ef6c19a 100644 --- a/libs/backends/coreaudio/coreaudio_backend.h +++ b/libs/backends/coreaudio/coreaudio_backend.h @@ -30,6 +30,7 @@ #include <boost/shared_ptr.hpp> +#include "pbd/natsort.h" #include "ardour/audio_backend.h" #include "ardour/dsp_load_calculator.h" #include "ardour/types.h" @@ -470,7 +471,7 @@ class CoreAudioBackend : public AudioBackend { { 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 ()); } }; diff --git a/libs/backends/dummy/dummy_audiobackend.h b/libs/backends/dummy/dummy_audiobackend.h index bd597e3301..db4f191cd8 100644 --- a/libs/backends/dummy/dummy_audiobackend.h +++ b/libs/backends/dummy/dummy_audiobackend.h @@ -30,6 +30,7 @@ #include <boost/shared_ptr.hpp> +#include "pbd/natsort.h" #include "ardour/types.h" #include "ardour/audio_backend.h" #include "ardour/dsp_load_calculator.h" @@ -455,7 +456,7 @@ class DummyAudioBackend : public AudioBackend { { 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 ()); } }; |