From c174d8c28a955716bbf8e50d56dfb03d934a630f Mon Sep 17 00:00:00 2001 From: Robert von Burg Date: Mon, 21 Aug 2017 13:08:22 +0200 Subject: [PATCH] [Fix] Sort types in inspector --- .../java/li/strolch/rest/endpoint/Inspector.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/li.strolch.rest/src/main/java/li/strolch/rest/endpoint/Inspector.java b/li.strolch.rest/src/main/java/li/strolch/rest/endpoint/Inspector.java index f19d4ed04..be7e4ba39 100644 --- a/li.strolch.rest/src/main/java/li/strolch/rest/endpoint/Inspector.java +++ b/li.strolch.rest/src/main/java/li/strolch/rest/endpoint/Inspector.java @@ -249,9 +249,9 @@ public class Inspector { JsonArray typeArrJ = new JsonArray(); mapOverview.add(Tags.Json.TYPES, typeArrJ); - List types = new ArrayList<>(); + List types = new ArrayList<>(resourceMap.getTypes(tx)); Collections.sort(types); - resourceMap.getTypes(tx).forEach(type -> { + types.forEach(type -> { JsonObject typeJ = new JsonObject(); typeJ.addProperty(Tags.Json.TYPE, type); @@ -295,9 +295,9 @@ public class Inspector { JsonArray typeArrJ = new JsonArray(); mapOverview.add(Tags.Json.TYPES, typeArrJ); - List types = new ArrayList<>(); + List types = new ArrayList<>(orderMap.getTypes(tx)); Collections.sort(types); - orderMap.getTypes(tx).forEach(type -> { + types.forEach(type -> { JsonObject typeJ = new JsonObject(); typeJ.addProperty(Tags.Json.TYPE, type); @@ -343,9 +343,9 @@ public class Inspector { JsonArray typeArrJ = new JsonArray(); mapOverview.add(Tags.Json.TYPES, typeArrJ); - List types = new ArrayList<>(); + List types = new ArrayList<>(activityMap.getTypes(tx)); Collections.sort(types); - activityMap.getTypes(tx).forEach(type -> { + types.forEach(type -> { JsonObject typeJ = new JsonObject(); typeJ.addProperty(Tags.Json.TYPE, type);