<!--
{
  "availability" : [
    "iOS: 17.4.0 -",
    "iPadOS: 17.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "FinanceKit",
  "identifier" : "/documentation/FinanceKit/AccountQuery/init(sortDescriptors:predicate:limit:offset:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "FinanceKit"
    ],
    "preciseIdentifier" : "s:10FinanceKit12AccountQueryV15sortDescriptors9predicate5limit6offsetACSay10Foundation14SortDescriptorVyAA0C0OGG_AH9PredicateVyAL_QPGSgSiSgAStcfc"
  },
  "title" : "init(sortDescriptors:predicate:limit:offset:)"
}
-->

# init(sortDescriptors:predicate:limit:offset:)

Creates a new account query structure with the provided sort descriptors and, optionally, a predicate and limit on the number of records the query should return.

```
init(sortDescriptors: [SortDescriptor<Account>] = [], predicate: Predicate<Account>? = nil, limit: Int? = nil, offset: Int? = nil)
```

## Parameters

`sortDescriptors`

An array of [`Account`](/documentation/FinanceKit/Account) sort descriptors.

`predicate`

A <doc://com.apple.documentation/documentation/Foundation/Predicate> to filter the `Account` records with.

`limit`

An integer that indicates the maximum number of `Account` records to return.

`offset`

An integer that indicates the number of records to offset the result by.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)