public override int CompareBottom(int doc)
{
System.Diagnostics.Debug.Assert(bottomSlot != - 1);
int order = this.order[doc];
int cmp = bottomOrd - order;
if (cmp != 0)
{
return cmp;
}
System.String val2 = lookup[order];
if (bottomValue == null)
{
if (val2 == null)
{
return 0;
}
// bottom wins
return - 1;
}
else if (val2 == null)
{
// doc wins
return 1;
}
return String.CompareOrdinal(bottomValue, val2);
}