init(filter:sort:order:transaction:sectionBy:)
Creates a sectioned query sorted by a key path, grouped into sections by a required String key path.
Declaration
@MainActor @preconcurrency init<Value>(filter: Predicate<Element>? = nil, sort keyPath: KeyPath<Element, Value>, order: SortOrder = .forward, transaction: Transaction? = nil, sectionBy sectionKeyPath: KeyPath<Element, String>) where Result == SectionedResults<Element, String>, Value : Comparable