# SquareConnect::SearchOrdersSort ### Description Sorting options for a query. Returned Orders will always be sorted on a timestamp. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **sort_field** | **String** | The field to sort by. __Important:__ When using a [DateTimeFilter](#type-searchordersfilter), `sort_field` must match the set time range field. If this field does not match the time range field in `DateTimeFilter`, SearchOrder will return an error. Default: `CREATED_AT`. See [SearchOrdersSortField](#type-searchorderssortfield) for possible values | **sort_order** | **String** | The order in which results are returned. Defaults to `DESC`. See [SortOrder](#type-sortorder) for possible values | [optional]