sort_by_keys function:

  • Can also be called as order_by_keys

Sort an object by it's keys. If the first argument is an object, return object sorted by it's keys.

Examples:

  • running: (sort_by_keys {"z": 1, "x": 2, "w": null}) will give: {"w": null, "x": 2, "z": 1}

  • running: (sort_by_keys false) will return nothing