sort activities by created time