private void insertInOrder(List<Row> toAdd,Row[] current){
  int last=0;
  int index;
  int max=toAdd.size();
  for (int i=0; i < max; i++) {
    index=Arrays.binarySearch(current,toAdd.get(i));
    if (index < 0) {
      index=-1 - index;
    }
    System.arraycopy(current,last,viewToModel,last + i,index - last);
    viewToModel[index + i]=toAdd.get(i);
    last=index;
  }
  System.arraycopy(current,last,viewToModel,last + max,current.length - last);
}

private void insertInOrder ( List < Row > toAdd , Row [ ] current ) { int last = 0 ; int index ; int max = toAdd . size ( ) ; for ( int i = 0 ; i < max ; i ++ ) { index = Arrays . binarySearch ( current , toAdd . get ( i ) ) ; if ( index < 0 ) { index = - 1 - index ; } System . arraycopy ( current , last , viewToModel , last + i , index - last ) ; viewToModel [ index + i ] = toAdd . get ( i ) ; last = index ; } System . arraycopy ( current , last , viewToModel , last + max , current . length - last ) ; }
insets new set of entries .
