You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Options can be a comparator function or an object which has two optional properties: `cmp` and `cycles`.
42
+
40
43
### cmp
41
44
42
-
If `opts` is given, you can supply an `opts.cmp` to have a custom comparison
43
-
function for object keys. Your function `opts.cmp` is called with these
44
-
parameters:
45
+
`opts.cmp` is the custom comparator function that user can specify. If custom comparator function is not provided, the JSON string of an object will be sorted by the alphanumeric order of object keys.
46
+
The type of the comparator function is defined as:
0 commit comments