FMIceLinkSort Class Reference

Inherits from NSObject
Declared in FMIceLinkSort.h
FMIceLinkSort.m

Overview

Encapsulates useful sorting utilities.

+ quickSortWithArray:comparer:

Sorts an array using the in-place quick[sort](#//api/name/sort) algorithm.

The type of elements in the array.

+ (void)quickSortWithArray:(NSMutableArray *)array comparer:(FMIceLinkFunction2 *)comparer

Parameters

array

The array of elements.

comparer

The function used to compare elements in the array - should return less than 0 if item 1 is less than item 2 (item 1 should appear before item 2), 0 if the items are equal, or more than 0 is item 1 is greater than item 2 (item 1 should appear after item 2).

Discussion

Sorts an array using the in-place quick[sort](#//api/name/sort) algorithm.

The type of elements in the array.

Declared In

FMIceLinkSort.h

+ quickSortWithArray:comparerBlock:

Sorts an array using the in-place quick[sort](#//api/name/sort) algorithm.

The type of elements in the array.

+ (void)quickSortWithArray:(NSMutableArray *)array comparerBlock:(FMIceLinkCompareResult ( ^ ) ( id , id ))comparerBlock

Parameters

array

The array of elements.

comparerBlock

The function used to compare elements in the array - should return less than 0 if item 1 is less than item 2 (item 1 should appear before item 2), 0 if the items are equal, or more than 0 is item 1 is greater than item 2 (item 1 should appear after item 2).

Discussion

Sorts an array using the in-place quick[sort](#//api/name/sort) algorithm.

The type of elements in the array.

Declared In

FMIceLinkSort.h

+ quickSortWithArrayAndComparerBlock

Sorts an array using the in-place quick[sort](#//api/name/sort) algorithm.

The type of elements in the array. @inlineparam array The array of elements. @inlineparam comparerBlock The function used to compare elements in the array - should return less than 0 if item 1 is less than item 2 (item 1 should appear before item 2), 0 if the items are equal, or more than 0 is item 1 is greater than item 2 (item 1 should appear after item 2).

+ (void ( ^ ) ( NSMutableArray *, FMIceLinkCompareResult ( ^ ) ( id , id ) ))quickSortWithArrayAndComparerBlock

Discussion

Sorts an array using the in-place quick[sort](#//api/name/sort) algorithm.

The type of elements in the array. @inlineparam array The array of elements. @inlineparam comparerBlock The function used to compare elements in the array - should return less than 0 if item 1 is less than item 2 (item 1 should appear before item 2), 0 if the items are equal, or more than 0 is item 1 is greater than item 2 (item 1 should appear after item 2).

Declared In

FMIceLinkSort.h