CRUNCH-455: Support custom rawcomparators for sorting in the in-memory mode