---
lang: en
title: 'API docs: filter.filter.order'
keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI
sidebar: lb4_sidebar
editurl: https://github.com/loopbackio/loopback-next/tree/master/packages/filter
permalink: /doc/en/lb4/apidocs.filter.filter.order.html
---

<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@loopback/filter](./filter.md) &gt; [Filter](./filter.filter.md) &gt; [order](./filter.filter.order.md)

## Filter.order property

Sorting order for matched entities. Each item should be formatted as `fieldName ASC` or `fieldName DESC`<!-- -->. For example: `['f1 ASC', 'f2 DESC', 'f3 ASC']`<!-- -->.

We might want to use `Order` in the future. Keep it as `string[]` for now for compatibility with LoopBack 3.x.

<b>Signature:</b>

```typescript
order?: string[];
```

