---
lang: en
title: 'API docs: repository.filter.order'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
permalink: /doc/en/lb4/apidocs.repository.filter.order.html
---

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

[Home](./index.md) &gt; [@loopback/repository](./repository.md) &gt; [Filter](./repository.filter.md) &gt; [order](./repository.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[];
```

