uniqueOrganizationsArray
is of [String]
type.
private let collation = UILocalizedIndexedCollation.currentCollation() as UILocalizedIndexedCollation
private var sections: [[String]] = []
let selector: Selector = ""
sections = [[String]](count: collation.sectionTitles.count, repeatedValue: [])
for object in uniqueOrganizationsArray {
let sectionNumber = collation.sectionForObject(object, collationStringSelector: selector)
sections[sectionNumber].append(object as String)
}
What selector should I use on String
object?