NSArray (BDSortOrderingAdditions)

Inherits from:
NSObject
Declared in:
BDControl/BDSortOrdering.h

Class at a Glance

BDControl extends Foundation's NSArray class by adding the ability to sort an array based on an array of sort ordering objects, and return a new sorted array. See BDSortOrdering for details.


Class Description

BDControl extends Foundation's NSArray class by adding the ability to sort an array based on an array of sort ordering objects, and return a new sorted array. See BDSortOrdering for details.

This sorting operation may be memory-intensive. If a memory allocation fails, NSMallocException will be raised.


Method Types

Sorting
-sortedArrayUsingKeyOrderArray:

Instance Methods

-sortedArrayUsingKeyOrderArray:

- (NSArray *)sortedArrayUsingKeyOrderArray:(NSArray *)keyOrderArray

Sorts an array using the given key-order array, and returns a new sorted array. The key-order array consists of BDSortOrdering objects that represent a particular way of sorting. In the key-order array they are ordered from most- to least-specific.


Copyright © 2002, 2003, bDistributed.com, Inc. All rights reserved worldwide.