@dxos/echo
    Preparing search index...

    Variable getAnnotationOrderValueConst

    getAnnotationOrderValue: (
        annotations: Readonly<Record<string, unknown>> | undefined,
        order: OrderAnnotation,
    ) => string | number | null

    The value an annotation order sorts by, in the domain SQLite's JSON functions sort in: booleans as 0/1, and anything but a number or string (absent, null, object, array) as null.

    Type declaration

      • (
            annotations: Readonly<Record<string, unknown>> | undefined,
            order: OrderAnnotation,
        ): string | number | null
      • Parameters

        • annotations: Readonly<Record<string, unknown>> | undefined
        • order: OrderAnnotation

        Returns string | number | null