# Cart::sortArgs()

> Get sort arguments from a string

- Source: `src/Toolkit/Collection.php#L979` <https://github.com/getkirby/kirby/blob/6.0.0-beta.1/src/Toolkit/Collection.php#L979>
- Inherited from Kirby, not part of the Merx API. See <https://getkirby.com/docs/reference>.

```php
Cart::sortArgs(string $sort): array
```

## Parameters

| Name | Type | Default |
| --- | --- | --- |
| `$sort` | `string` | `–` |

## Return type

`array`

## Parent class

`Wagnerwagner\Merx\Cart` inherited from `Kirby\Toolkit\Collection`
