From f2639e2928496bd16301236e30c3d53c3467931d Mon Sep 17 00:00:00 2001 From: dsa-t Date: Sat, 11 Dec 2021 23:12:47 +0000 Subject: [PATCH] Reverse sort order for net id in inspector --- pcbnew/dialogs/dialog_net_inspector.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ) {