compare-at-paths
create a compare function that compares given paths into an object.
example
foo: true bar: baz: 1foo: true bar: baz: 3foo: true bar: baz: 2foo: false bar: baz: 1
output will be
foo: false bar: baz: 1foo: true bar: baz: 1foo: true bar: baz: 2foo: true bar: baz: 3
if you want a field to be in decending order, use {$reverse: [path...]}
License
MIT