set_sort_fields_sync


Description:

[ 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 FILE_AS, GIVEN_NAME and FAMILY_NAME.

The array is terminated by an item with an 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.

Parameters:

this

an BookClientView

fields

an array of BookClientViewSortFields, terminated by item with FIELD_LAST field

cancellable

optional Cancellable object, or null

Returns:

whether succeeded