Use natural order sorting for FP libraries.
Fixes https://gitlab.com/kicad/code/kicad/issues/10349
(cherry picked from commit a187076438
)
This commit is contained in:
parent
02f93805d0
commit
5c94d59e75
|
@ -31,7 +31,7 @@
|
|||
#include <lib_table_base.h>
|
||||
#include <lib_table_lexer.h>
|
||||
#include <macros.h>
|
||||
|
||||
#include "string_utils.h"
|
||||
|
||||
#define OPT_SEP '|' ///< options separator character
|
||||
|
||||
|
@ -294,7 +294,7 @@ std::vector<wxString> LIB_TABLE::GetLogicalLibs()
|
|||
std::sort( ret.begin(), ret.end(),
|
||||
[]( const wxString& lhs, const wxString& rhs )
|
||||
{
|
||||
return lhs.CmpNoCase( rhs ) < 0;
|
||||
return StrNumCmp( lhs, rhs, true /* ignore case */ ) < 0;
|
||||
} );
|
||||
|
||||
return ret;
|
||||
|
|
Loading…
Reference in New Issue