@metreeca/core - v0.9.11
    Preparing search index...

    Function descending

    • Compares values in descending order.

      Null and undefined values are treated as less than any other value. When both values are null or undefined, they are considered equal.

      Type Parameters

      • V

      Parameters

      • a: V

        First value to compare

      • b: V

        Second value to compare

      Returns number

      Positive if a < b, negative if a > b, zero if equal

      When comparing incompatible types (e.g., numbers with strings), JavaScript's comparison operators perform type coercion which may produce unexpected results. Incomparable values are treated as equal. Use with homogeneous collections for predictable sorting.