sortbyproperty
Sort an array of objects by a specified property, with optional descending order. Handles missing properties and empty arrays.
Instructions
Accepts an Array of Objects and sorts it by the object Property specified. If any objects lack the specified property, it will still perform the sort. Optionally accepts the parameter 'descending'. If left out, it will default to ascending. If an empty Array is provided, it will be returned.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||