/*********************************************** !!!! DO NOT EDIT THIS FILE !!!! This file was auto-generated by Build.PL from lib/KinoSearch/Search/HitQueue.pm See KinoSearch::Docs::DevGuide for details. ***********************************************/ #line 68 "lib/KinoSearch/Search/HitQueue.pm" #include "KinoSearchSearchHitQueue.h" /* Compare the NV then the PV for two scalars. */ bool Kino_HitQ_less_than(SV* a, SV* b) { char *ptr_a, *ptr_b; if (SvNV(a) == SvNV(b)) { ptr_a = SvPVX(a); ptr_b = SvPVX(b); /* sort by doc_num second */ return (bool) (memcmp(ptr_b, ptr_a, 4) < 0); } /* sort by score first */ return SvNV(a) < SvNV(b); }