Use natural sorting for net inspector when sorting by net name.

wxString sorting doesn't work when sorting strings with numbers which
results in 1,10,11...2 instead of 1,2,...9,10,11.

https://gitlab.com/kicad/code/kicad/-/issues/16100
This commit is contained in:
Wayne Stambaugh 2023-11-17 15:25:07 -05:00
parent a4a946ab75
commit a5c34c50d7
1 changed files with 1 additions and 1 deletions

View File

@ -848,7 +848,7 @@ protected:
const wxString& s1 = i1.GetNetName();
const wxString& s2 = i2.GetNetName();
int res = aAsc ? s1.Cmp( s2 ) : s2.Cmp( s1 );
int res = aAsc ? ValueStringCompare( s1, s2 ) : ValueStringCompare( s2, s1 );
if( res != 0 )
return res;