added sort params to get_contacts