set_sort_fields


Description:

[ Version ( since = "3.50" ) ]
public void set_sort_fields (BookClientViewSortFields fields)

Sets fields to sort the view by.

The default is to sort by the file-as field. The contacts are always sorted in ascending order. Not every field can be used for sorting, the default available fields are e_contact_file_as, e_contact_given_name and e_contact_family_name.

The first sort field is used to populate indices, as returned by dup_indices .

Note: This function can be used only with E_BOOK_CLIENT_VIEW_FLAGS_MANUAL_QUERY.

Parameters:

this

an DataBookView

fields

an array of BookClientViewSortFields fields to sort by