[pure virtual]
Set the compare handler. This method is used to override the default sdf compare handler.