---
title: "init(sortDescriptors:predicate:limit:offset:)"
framework: financekit
role: symbol
role_heading: Initializer
path: "financekit/accountbalancequery/init(sortdescriptors:predicate:limit:offset:)"
---

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

Creates a new account balance query structure with the provided sort descriptors.

## Declaration

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

## Parameters

- `sortDescriptors`: An array of doc://com.apple.financekit/documentation/FinanceKit/AccountBalance 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 records to return.
- `offset`: An integer that indicates the number of records to offset the result by.
