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 "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 ());
}
};