From cdca12de5a17fea688d83026f03aa1597d91ac14 Mon Sep 17 00:00:00 2001 From: jmarto3 Date: Fri, 9 Feb 2024 14:06:27 -0500 Subject: [PATCH] Sort methods by display name instead of method name --- .../zucchini/circuitsimtester/launcher/TestMethodResult.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/main/java/io/zucchini/circuitsimtester/launcher/TestMethodResult.java b/src/main/java/io/zucchini/circuitsimtester/launcher/TestMethodResult.java index 2d1775e..5f39af7 100644 --- a/src/main/java/io/zucchini/circuitsimtester/launcher/TestMethodResult.java +++ b/src/main/java/io/zucchini/circuitsimtester/launcher/TestMethodResult.java @@ -23,9 +23,6 @@ public TestMethodResult(TestIdentifier id, @Override public int compareTo(TestMethodResult other) { - int methodNameCompared = source.getMethodName().compareTo(other.source.getMethodName()); - - return (methodNameCompared == 0)? id.getDisplayName().compareTo(other.id.getDisplayName()) - : methodNameCompared; + return id.getDisplayName().compareTo(other.id.getDisplayName()); } }