Natural sorting for nets.
Fixes https://gitlab.com/kicad/code/kicad/issues/10534
(cherry picked from commit 96f9ea286e
)
This commit is contained in:
parent
fd5eeceb4f
commit
5e0251c2ba
|
@ -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>
|
// Special handling for <no net>
|
||||||
if( filter.IsEmpty() || wxString( NO_NET ).MakeLower().Matches( filter ) )
|
if( filter.IsEmpty() || wxString( NO_NET ).MakeLower().Matches( filter ) )
|
||||||
|
|
Loading…
Reference in New Issue