[Fix] Sort types in inspector

This commit is contained in:
Robert von Burg 2017-08-21 13:08:22 +02:00
parent d22e54b8e7
commit c174d8c28a
1 changed files with 6 additions and 6 deletions

View File

@ -249,9 +249,9 @@ public class Inspector {
JsonArray typeArrJ = new JsonArray();
mapOverview.add(Tags.Json.TYPES, typeArrJ);
List<String> types = new ArrayList<>();
List<String> 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<String> types = new ArrayList<>();
List<String> 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<String> types = new ArrayList<>();
List<String> 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);