'Helper : returns a `res.partner` recordset ordered by create_date/active fields
:param partner_ids : list of partner ids to sort'

@api.model
def _get_ordered_partner(self, partner_ids):

    return self.env['res.partner'].browse(partner_ids).sorted(key=(lambda p: (p.active, p.create_date)), reverse=True)
