diff --git a/pmd-apex/src/main/java/net/sourceforge/pmd/lang/apex/ast/ASTUserTrigger.java b/pmd-apex/src/main/java/net/sourceforge/pmd/lang/apex/ast/ASTUserTrigger.java index b82ef4fed8..1e313d66d5 100644 --- a/pmd-apex/src/main/java/net/sourceforge/pmd/lang/apex/ast/ASTUserTrigger.java +++ b/pmd-apex/src/main/java/net/sourceforge/pmd/lang/apex/ast/ASTUserTrigger.java @@ -35,6 +35,6 @@ public class ASTUserTrigger extends ApexRootNode { } public String getUsages() { - return node.getUsages().stream().map(TriggerUsage::name).collect(Collectors.joining(",")); + return node.getUsages().stream().map(TriggerUsage::name).sorted().collect(Collectors.joining(",")); } }