sort_by_values function:

  • Can also be called as order_by_values

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

Examples:

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

  • running: (sort_by_values false) will return nothing