Natural sorting for nets.

Fixes https://gitlab.com/kicad/code/kicad/issues/10534
This commit is contained in:
Jeff Young 2022-03-07 21:03:25 +00:00
parent 6d82490b59
commit 96f9ea286e
1 changed files with 6 additions and 1 deletions

View File

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