@@ -86,7 +86,7 @@ func GetCompanyContractListJoinCompany(condition string, pars []interface{}, sta
WHERE
a.STATUS = 1`
sql += condition
- sql += `GROUP BY a.company_contract_id ORDER BY a.start_date DESC LIMIT ?,? `
+ sql += `GROUP BY a.company_contract_id ORDER BY a.start_date DESC , a.company_contract_id DESC LIMIT ?,? `
_, err = o.Raw(sql, pars, startSize, pageSize).QueryRows(&items)
return
}