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

sortedArray(comparator:)

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

Declaration 宣言

func sortedArray(comparator cmptr: (Any, Any) -> ComparisonResult) -> [Any]

Parameters パラメータ

cmptr

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

Return Value 戻り値

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

See Also 参照

Creating a Sorted Array ソート配列を作成する