OrderTransform

open class OrderTransform : TransformValue, @unchecked Sendable

Represents the ‘orderby’ transformation.

  • Declaration

    Swift

    override open func copyMutable() -> DataValue

    Return Value

    A clone of this value if it (together with all value subcomponents) is possibly mutable, or return self value if it (together with all value subcomponents) is definitely immutable. The resulting value might share mutable metadata with this query.

  • Creates an ‘orderby’ transformation with the given sort items.

    Declaration

    Swift

    open class func orderBy(_ items: SortItem...) -> OrderTransform

    Parameters

    rest_items

    The sort items for ordering.

    Return Value

    The created orderby transformation.

  • Creates an ‘orderby’ transformation with the given sort items.

    Declaration

    Swift

    open class func orderByList(items: SortItemList) -> OrderTransform

    Parameters

    items

    The sort items for ordering.

    Return Value

    The The created orderby transformation.

  • The sort items for the orderby transformation.

    Declaration

    Swift

    public final var sortItems: SortItemList { get }