Support for custom comparators