pass compare methods to @klass in Proxy