Skip to content

Interface: SortObjectOptions ​

How sortObject sorts the keys.

Properties ​

deep? ​

optional deep?: boolean

Whether the keys of the nested plain objects are sorted too, including the objects inside arrays.

Default ​

ts
false (only the top-level keys)

order? ​

optional order?: "asc" | "desc"

The order of the keys: 'asc' (A to Z) or 'desc' (Z to A).

Default ​

ts
'asc'

Released under the MIT License.