Fixes #1235.

Corrected the order of arguments for `getComparatorFor()`.