Fix sort to be irreflexive
Switching the order of the parameters must switch the sort order (no <=) otherwise the sort is non-determinant and fails std::sort preconditions
This commit is contained in:
parent
452b9bacba
commit
cd3ecdfc78
|
@ -1253,7 +1253,7 @@ bool SCH_GLOBALLABEL::ResolveTextVar( wxString* token, int aDepth ) const
|
||||||
std::sort( pageListCopy.begin(), pageListCopy.end(),
|
std::sort( pageListCopy.begin(), pageListCopy.end(),
|
||||||
[]( const wxString& a, const wxString& b ) -> bool
|
[]( const wxString& a, const wxString& b ) -> bool
|
||||||
{
|
{
|
||||||
return StrNumCmp( a, b, true ) <= 0;
|
return StrNumCmp( a, b, true ) < 0;
|
||||||
} );
|
} );
|
||||||
|
|
||||||
if( !settings.m_IntersheetRefsListOwnPage )
|
if( !settings.m_IntersheetRefsListOwnPage )
|
||||||
|
|
Loading…
Reference in New Issue