Natural sorting for nets.
Fixes https://gitlab.com/kicad/code/kicad/issues/10534
This commit is contained in:
parent
6d82490b59
commit
96f9ea286e
|
@ -335,7 +335,12 @@ protected:
|
|||
}
|
||||
}
|
||||
|
||||
std::sort( netNames.begin(), netNames.end() );
|
||||
std::sort( netNames.begin(), netNames.end(),
|
||||
[]( const wxString& lhs, const wxString& rhs )
|
||||
{
|
||||
return StrNumCmp( lhs, rhs, true /* ignore case */ ) < 0;
|
||||
} );
|
||||
|
||||
|
||||
// Special handling for <no net>
|
||||
if( filter.IsEmpty() || wxString( NO_NET ).MakeLower().Matches( filter ) )
|
||||
|
|
Loading…
Reference in New Issue