properly sort port-names
This commit is contained in:
@@ -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 ());
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -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 ());
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -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 ());
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user