Module: sortObject

(require("sortObject"))(obj, fopt)

Sort an object literal and return the result as a new object literal

Parameters:
Name Type Attributes Default Description
obj Object
f function <optional>
x=>x

Optional function to pass arguments through, useful if e.g. we are sorting by a property of an object.

Source: