$typeMap
$typeMap :
stableSort(array $data, callable $sortFn) : array
JMESPath requires a stable sorting algorithm, so here we'll implement a simple Schwartzian transform that uses array index positions as tie breakers.
| array | $data | List or map of data to sort |
| callable | $sortFn | Callable used to sort values |
Returns the sorted array
slice(array|string $value, integer|null $start = null, integer|null $stop = null, integer $step = 1) : array|string
Creates a Python-style slice of a string or array.
| array|string | $value | Value to slice |
| integer|null | $start | Starting position |
| integer|null | $stop | Stop position |
| integer | $step | Step (1, 2, -1, -2, etc.) |