diff --git a/pcbnew/dialogs/dialog_net_inspector.cpp b/pcbnew/dialogs/dialog_net_inspector.cpp index 4d0427f6db..5b5eaf950e 100644 --- a/pcbnew/dialogs/dialog_net_inspector.cpp +++ b/pcbnew/dialogs/dialog_net_inspector.cpp @@ -676,7 +676,8 @@ protected: if( aCol == COLUMN_NET && i1.GetNetCode() != i2.GetNetCode() ) { - return aAsc ? ( i2.GetNetCode() - i1.GetNetCode() ) : ( i1.GetNetCode() - i2.GetNetCode() ); + return aAsc ? ( i1.GetNetCode() - i2.GetNetCode() ) + : ( i2.GetNetCode() - i1.GetNetCode() ); } else if( aCol == COLUMN_NAME ) {