diff --git a/eeschema/sch_text.cpp b/eeschema/sch_text.cpp index 4506328ae6..c5d9431714 100644 --- a/eeschema/sch_text.cpp +++ b/eeschema/sch_text.cpp @@ -1253,7 +1253,7 @@ bool SCH_GLOBALLABEL::ResolveTextVar( wxString* token, int aDepth ) const std::sort( pageListCopy.begin(), pageListCopy.end(), []( const wxString& a, const wxString& b ) -> bool { - return StrNumCmp( a, b, true ) <= 0; + return StrNumCmp( a, b, true ) < 0; } ); if( !settings.m_IntersheetRefsListOwnPage )