From 5c94d59e75f67d4ac3df2e2abd3e98d1724e8560 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 (cherry picked from commit a1870764385c0d5102ced67dc0570c2fd8efd2b0) --- common/lib_table_base.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/lib_table_base.cpp b/common/lib_table_base.cpp index bfb815fbdb..4544e869c5 100644 --- a/common/lib_table_base.cpp +++ b/common/lib_table_base.cpp @@ -31,7 +31,7 @@ #include #include #include - +#include "string_utils.h" #define OPT_SEP '|' ///< options separator character @@ -294,7 +294,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;