added cid on order by