sortRange method

void sortRange(
  1. NSRange range, {
  2. required int options,
  3. required ObjCBlock<Long Function(Pointer<ObjCObjectImpl>, Pointer<ObjCObjectImpl>)> usingComparator,
})

sortRange:options:usingComparator:

Implementation

void sortRange(
  NSRange range, {
  required int options,
  required objc.ObjCBlock<
    ffi.Long Function(
      ffi.Pointer<objc.ObjCObjectImpl>,
      ffi.Pointer<objc.ObjCObjectImpl>,
    )
  >
  usingComparator,
}) {
  objc.checkOsVersionInternal(
    'NSMutableOrderedSet.sortRange:options:usingComparator:',
    iOS: (false, (5, 0, 0)),
    macOS: (false, (10, 7, 0)),
  );
  _objc_msgSend_arew0j(
    object$.ref.pointer,
    _sel_sortRange_options_usingComparator_,
    range,
    options,
    usingComparator.ref.pointer,
  );
}