@loopback/docs
Version:
Documentation for LoopBack 4
25 lines (16 loc) • 785 B
Markdown
---
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) > [@loopback/repository](./repository.md) > [Filter](./repository.filter.md) > [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[];
```