sort-by: Avoid re-creating comparator

Description

The fn->comparator call should be lifted:

Also, fn->comparator is again called on the function in sort, not sure how to avoid that unless we copy the sort code into sort-by.

Environment

None

Assignee

David Nolen

Reporter

Andre R

Labels

None

Approval

None

Patch

Code

Affects versions

Priority

Minor
Configure