pub unsafe extern "C-unwind" fn CFArraySortValues(
the_array: Option<&CFMutableArray>,
range: CFRange,
comparator: CFComparatorFunction,
context: *mut c_void,
)
CFArray
and CFBase
only.Expand description
Sorts the values in the array using the given comparison function.
Parameter theArray
: The array whose values are to be sorted. If this
parameter is not a valid mutable CFArray, the behavior is
undefined.
Parameter range
: The range of values within the array to sort. If the
range location or end point (defined by the location plus
length minus 1) is outside the index space of the array (0
to N-1 inclusive, where N is the count of the array), the
behavior is undefined. If the range length is negative, the
behavior is undefined. The range may be empty (length 0).
Parameter comparator
: The function with the comparator function type
signature which is used in the sort operation to compare
values in the array with the given value. If this parameter
is not a pointer to a function of the correct prototype, the
the behavior is undefined. If there are values in the array
which the comparator function does not expect or cannot
properly compare, the behavior is undefined. The values in
the range are sorted from least to greatest according to
this function.
Parameter context
: A pointer-sized user-defined value, which is passed
as the third parameter to the comparator function, but is
otherwise unused by this function. If the context is not
what is expected by the comparator function, the behavior is
undefined.