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;