Page Contents

Home > @loopback/filter > FilterBuilder > order

FilterBuilder.order() method

Describe the sorting order

Signature:

order(...o: (string | string[] | Order<MT>)[]): this;

Parameters

Parameter Type Description
o (string \| string\[\] \| [Order](/doc/en/lb4/apidocs.filter.order.html)<MT>)\[\] A field name with optional direction, an array of field names, or an Order object for the field/direction pairs

Returns:

this