diff --git a/org.adempiere.base/src/org/adempiere/impexp/GridTabCSVImporter.java b/org.adempiere.base/src/org/adempiere/impexp/GridTabCSVImporter.java index 92c100ba96..dea57ca07c 100644 --- a/org.adempiere.base/src/org/adempiere/impexp/GridTabCSVImporter.java +++ b/org.adempiere.base/src/org/adempiere/impexp/GridTabCSVImporter.java @@ -219,8 +219,11 @@ public class GridTabCSVImporter implements IGridTabImporter sortedtTabMapIndexes = new TreeMap(bvc); sortedtTabMapIndexes.putAll(tabMapIndexes); }else{ - sortedtTabMapIndexes = new TreeMap(); - sortedtTabMapIndexes.put(gridTab,header.size()-1); + Map localMapIndexes = new HashMap(); + localMapIndexes.put(gridTab, header.size()-1); + ValueComparator bvc = new ValueComparator(localMapIndexes); + sortedtTabMapIndexes = new TreeMap(bvc); + sortedtTabMapIndexes.putAll(localMapIndexes); } CellProcessor[] processors = readProcArray.toArray(new CellProcessor[readProcArray.size()]);