public override string Apply(Document doc) { string ret = XapianPINVOKE.MultiValueSorter_Apply(swigCPtr, Document.getCPtr(doc)); if (XapianPINVOKE.SWIGPendingException.Pending) throw XapianPINVOKE.SWIGPendingException.Retrieve(); return ret; }