Instance Method インスタンスメソッド

sortedArrayWithOptions:usingComparator:

Returns an array that lists the receiving array’s elements in ascending order, as determined by the comparison method specified by a given NSComparator block. 新しい配列を返します、それは、受け手側の配列の持つ要素を昇順で、与えられたNSComparatorブロックによって指定される比較メソッドで決定されるとおりに列記するものです。

Declaration 宣言

- (NSArray<ObjectType> *)sortedArrayWithOptions:(NSSortOptions)opts 
                                usingComparator:(NSComparator)cmptr;

Parameters パラメータ

opts

A bit mask that specifies the options for the sort (whether it should be performed concurrently and whether it should be performed stably). あるビットマスク、それはソートのためのオプションを指定します(それが並行に実行されるべきかどうかそしてそれが変動なく実行されるべきかどうか)。

cmptr

A comparator block. 比較を行うブロック。

Return Value 戻り値

An array that lists the receiving array’s elements in ascending order, as determined by the comparison method specified cmptr. 新しい配列、それは、受け手側の配列の持つ要素を昇順で、cmptrで指定される比較メソッドによって決定されるとおりに列記するものです。

See Also 参照

Sorting ソートする