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

<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@loopback/filter](./filter.md) &gt; [FilterBuilder](./filter.filterbuilder.md) &gt; [order](./filter.filterbuilder.order.md)

## FilterBuilder.order() method

Describe the sorting order

<b>Signature:</b>

```typescript
order(...o: (string | string[] | Order<MT>)[]): this;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  o | (string \| string\[\] \| [Order](./filter.order.md)<!-- -->&lt;MT&gt;)\[\] | A field name with optional direction, an array of field names, or an Order object for the field/direction pairs |

<b>Returns:</b>

this


