From a1870764385c0d5102ced67dc0570c2fd8efd2b0 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sat, 22 Jan 2022 12:14:43 +0000 Subject: [PATCH] Use natural order sorting for FP libraries. Fixes https://gitlab.com/kicad/code/kicad/issues/10349 --- common/lib_table_base.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/lib_table_base.cpp b/common/lib_table_base.cpp index 97cad91ccf..eb478b83d0 100644 --- a/common/lib_table_base.cpp +++ b/common/lib_table_base.cpp @@ -286,7 +286,7 @@ std::vector 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;