core/src/main/java/org/apache/carbondata/core/metadata/schema/table/CarbonTable.java
/**
   * fill columns as per user provided order
   *
   * @param tableName
   */
fill columns as per user provided order
@param tableName
fill columns as per user provided order @param tableName
private void fillCreateOrderColumn(String tableName) {
    List<CarbonColumn> columns = new ArrayList<CarbonColumn>();
    List<CarbonDimension> dimensions = this.tableDimensionsMap.get(tableName);
    List<CarbonMeasure> measures = this.tableMeasuresMap.get(tableName);
    columns.addAll(dimensions);
    columns.addAll(measures);
    Collections.sort(columns, new Comparator<CarbonColumn>() {
      @Override public int compare(CarbonColumn o1, CarbonColumn o2) {
        return Integer.compare(o1.getSchemaOrdinal(), o2.getSchemaOrdinal());
      }
    });
    this.createOrderColumn.put(tableName, columns);
  }
private void fillCreateOrderColumn ( String tableName ) { List < CarbonColumn > columns = new ArrayList < CarbonColumn > ( ) ; List < CarbonDimension > dimensions = this . tableDimensionsMap . get ( tableName ) ; List < CarbonMeasure > measures = this . tableMeasuresMap . get ( tableName ) ; columns . addAll ( dimensions ) ; columns . addAll ( measures ) ; Collections . sort ( columns , new Comparator < CarbonColumn > ( ) { @ Override public int compare ( CarbonColumn o1 , CarbonColumn o2 ) { return Integer . compare ( o1 . getSchemaOrdinal ( ) , o2 . getSchemaOrdinal ( ) ) ; } } ) ; this . createOrderColumn . put ( tableName , columns ) ; }
fill columns as per user provided order
 @param tableName
fill columns as per user provided order @param tableName