private void sortBrokerItems(BrokerItem[] brokerItems,int sortType){
  Arrays.sort(brokerItems,BrokerItem.getComparatoryByType(sortType));
}

private void sortBrokerItems ( BrokerItem [ ] brokerItems , int sortType ) { Arrays . sort ( brokerItems , BrokerItem . getComparatoryByType ( sortType ) ) ; }
perform sorting according to sort type
