mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 15:25:01 +01:00
properly sort port-names
This commit is contained in:
parent
311a5f1462
commit
8444837b71
3 changed files with 6 additions and 3 deletions
|
|
@ -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 ());
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue