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:
Jeff Young 2022-01-22 12:14:43 +00:00
parent 02f93805d0
commit 5c94d59e75
1 changed files with 2 additions and 2 deletions

View File

@ -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;