OrderBy

open class OrderBy

Represents an ordering clause for database queries, specifying both the field to order by and the direction of ordering (ascending or descending). This class is used to construct query ordering specifications for database operations.

Properties

Link copied to clipboard
The ordering direction (ascending or descending)
Link copied to clipboard
The field path to order by

Functions

Link copied to clipboard
open fun equals(o: Any): Boolean
Compares this OrderBy instance with another object for equality.
Link copied to clipboard
open fun getInstance(direction: Query.Direction, path: FieldPath): OrderBy
Creates a new OrderBy instance with the specified direction and field path.
Link copied to clipboard
open fun hashCode(): Int
Returns a hash code value for this OrderBy.