keySort

keySort(array array, [number order])
Sorts the array by its keys, in the given order.

This function was removed in LS4+ because of the split between lists and maps (array/map).

Sorts the array array by its keys, in the order order.

Parameters