1.1.4 • Published 3 years ago
@octoguide/sorting-utils v1.1.4
Constants
sortByName ⇒ Array
sort the objects by the name field
Kind: global constant
Returns: Array - of objects sorted by name
| Param | Type | Description |
|---|---|---|
| source | Array | the source array.. |
sortByDate ⇒ Array
sort the objects by the field specified that needs to be a date type
Kind: global constant
Returns: Array - of objects sorted by date
| Param | Type | Description |
|---|---|---|
| source | Array | the source array.. |
| sortField | Array | the date field |
sortByField ⇒ Array
sort the objects by the field specified
Kind: global constant
Returns: Array - of objects sorted by date
| Param | Type | Description |
|---|---|---|
| source | Array | the source array.. |
| sortField | Array | the field to sort by |