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:
Seth Hillbrand 2021-11-08 11:25:13 -08:00
parent 452b9bacba
commit cd3ecdfc78
1 changed files with 1 additions and 1 deletions

View File

@ -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 )