From 0df604e6a50fcfbd2d700c20dd67c040a08ff10e Mon Sep 17 00:00:00 2001 From: Ralph Soika Date: Mon, 16 Sep 2024 19:56:39 +0200 Subject: [PATCH] Fixed sorting to reverse order Issue #876 --- .../src/main/java/org/imixs/workflow/ModelManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imixs-workflow-core/src/main/java/org/imixs/workflow/ModelManager.java b/imixs-workflow-core/src/main/java/org/imixs/workflow/ModelManager.java index a8be0ac78..d6cfc8ef2 100644 --- a/imixs-workflow-core/src/main/java/org/imixs/workflow/ModelManager.java +++ b/imixs-workflow-core/src/main/java/org/imixs/workflow/ModelManager.java @@ -460,7 +460,7 @@ public Set findAllGroups() throws ModelException { public Set findAllVersionsByGroup(String group) throws ModelException { boolean debug = logger.isLoggable(Level.FINE); // Sorted in reverse order - Set result = new TreeSet<>(String.CASE_INSENSITIVE_ORDER); + Set result = new TreeSet<>(String.CASE_INSENSITIVE_ORDER.reversed()); if (debug) { logger.log(Level.FINEST, "......searching model versions for workflowgroup ''{0}''...", group); }