/// <summary> Returns whether <c>a</c> is less relevant than <c>b</c>.</summary>
            /// <param name="hitA">ScoreDoc</param>
            /// <param name="hitB">ScoreDoc</param>
            /// <returns><c>true</c> if document <c>a</c> should be sorted after document <c>b</c>.</returns>
            public override bool LessThan(Entry hitA, Entry hitB)
            {
                System.Diagnostics.Debug.Assert(hitA != hitB);
                System.Diagnostics.Debug.Assert(hitA.slot != hitB.slot);

                int c = oneReverseMul * comparator.Compare(hitA.slot, hitB.slot);

                if (c != 0)
                {
                    return(c > 0);
                }

                // avoid random sort order that could lead to duplicates (bug #31241):
                return(hitA.Doc > hitB.Doc);
            }