weaviate-client
    Preparing search index...

    Interface Sort<T>

    Define how the query's sort operation should be performed using the available methods.

    interface Sort<T> {
        byCreationTime(ascending?: boolean): Sorting<T>;
        byId(ascending?: boolean): Sorting<T>;
        byProperty<K extends string>(property: K, ascending?: boolean): Sorting<T>;
        byUpdateTime(ascending?: boolean): Sorting<T>;
    }

    Type Parameters

    • T
    Index

    Methods

    • Sort by an object property.

      Type Parameters

      • K extends string

      Parameters

      • property: K
      • Optionalascending: boolean

      Returns Sorting<T>