[ Version ( since = "3.50" ) ]
public bool set_sort_fields_sync (BookClientViewSortFields fields, Cancellable? cancellable = null) throws Error
Sets fields to sort the view by.
The default is to sort by the file-as field in ascending order. Not every field can be used for sorting, usually available fields are e_contact_file_as, e_contact_given_name and e_contact_family_name.
The array is terminated by an item with an e_contact_field_last field.
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.
| this | |
| fields |
an array of BookClientViewSortFields, terminated by item with e_contact_field_last field |
| cancellable |
optional Cancellable object, or null |
|
whether succeeded |