diff --git a/wise-webapp/src/main/java/com/wisemapping/importer/freemind/FreemindImporter.java b/wise-webapp/src/main/java/com/wisemapping/importer/freemind/FreemindImporter.java
index bf35454b..e419e6fd 100755
--- a/wise-webapp/src/main/java/com/wisemapping/importer/freemind/FreemindImporter.java
+++ b/wise-webapp/src/main/java/com/wisemapping/importer/freemind/FreemindImporter.java
@@ -230,6 +230,8 @@ public class FreemindImporter
TopicType currentWiseTopic = wiseParent;
int order = 0;
+ int firstLevelRightOrder = 0;
+ int firstLevelLeftOrder = 1;
for (Object element : freeChilden) {
if (element instanceof Node) {
@@ -247,7 +249,13 @@ public class FreemindImporter
if (depth != 1) {
norder = order++;
} else {
- norder = calcFirstLevelOrder(freeChilden, freeChild);
+ if (freeChild.getPOSITION().equals(POSITION_LEFT)) {
+ norder = firstLevelLeftOrder;
+ firstLevelLeftOrder = firstLevelLeftOrder + 2;
+ } else {
+ norder = firstLevelRightOrder;
+ firstLevelRightOrder = firstLevelRightOrder + 2;
+ }
}
wiseChild.setOrder(norder);
@@ -343,53 +351,6 @@ public class FreemindImporter
}
}
- /**
- * Sort the freemind node following this pattern:
- *
- * 0 -> 3
- * 1 -> 1
- * 2 -> 0
- * 3 -> 2
- * 4 -> 4
- */
- private int calcFirstLevelOrder(@NotNull List