question: private CarbonDictionarySortInfo createColumnSortInfo ( CarbonDictionarySortModel [ ] dictionarySortModels ) { int [ ] sortIndex ; int [ ] sortIndexInverted ; Arrays . sort ( dictionarySortModels ) ; sortIndex = new int [ dictionarySortModels . length ] ; sortIndexInverted = new int [ dictionarySortModels . length ] ; for ( int i = 0 ; i < dictionarySortModels . length ; i ++ ) { CarbonDictionarySortModel dictionarySortModel = dictionarySortModels [ i ] ; sortIndex [ i ] = dictionarySortModel . getKey ( ) ; sortIndexInverted [ dictionarySortModel . getKey ( ) - 1 ] = i + 1 ; } dictionarySortModels = null ; List < Integer > sortIndexList = convertToList ( sortIndex ) ; List < Integer > sortIndexInvertedList = convertToList ( sortIndexInverted ) ; return new CarbonDictionarySortInfo ( sortIndexList , sortIndexInvertedList ) ; }
target:  The method prepares the sort_index and sort_index_inverted data