Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 2d7bb9d

Browse files
committed
feat(orderBy): add support for custom comparators
With this change the 3rd argument is interpreted as a comparator function, used to compare the values returned by the predicates. Leaving it empty falls back to the default comparator and a value of `false` is a special case that also falls back to the default comparator but reverses the order. Thus the new implementation is backwards compatible. This commit also expands the documentation to cover the algorithm used to sort elements and adds a few more unit and e2e tests (unrelated to the change). Helps with #12572 (maybe this is as close as we want to get). Fixes #13238 Fixes #14455 Closes #5123 Closes #8112 Closes #10368
1 parent d2ec9d7 commit 2d7bb9d

File tree

2 files changed

+806
-173
lines changed

2 files changed

+806
-173
lines changed

0 commit comments

Comments
 (0)