public int compare(Object arg0, Object arg1) {
// TODO Auto-generated method stub
OBInAccountTradeResultInfo Info1 = (OBInAccountTradeResultInfo)arg0;
OBInAccountTradeResultInfo Info2 = (OBInAccountTradeResultInfo)arg1;
//把帐户号id、币种id、执行日、交易编号合并为一个字符串,对字符串进行排序
String str1 = "" + Info1.getQueryAcctID()+ Info1.getCurrencyID() + Info1.getExecuteDate() + Info1.getTransNo();
String str2 = "" + Info2.getQueryAcctID()+ Info2.getCurrencyID() + Info2.getExecuteDate() + Info2.getTransNo();
int flag = str1.compareTo(str2) ;
if(flag == 0)
{
return flag ;
}
else if(flag > 0)
{
flag = 1 ;
}else if(flag < 0){
flag = -1 ;
}
return flag;
}