/// <summary> /// Order data by $priority. Note that this is used mainly for following filtering queries and due to firebase implementation /// the data may actually not be ordered. /// </summary> /// <param name="child"> The child. </param> /// <returns> The <see cref="OrderQuery"/>. </returns> public static OrderQuery OrderByPriority(this ChildQuery child) { return(child.OrderBy("$priority")); }
/// <summary> /// Order data by $key. Note that this is used mainly for following filtering queries and due to firebase implementation /// the data may actually not be ordered. /// </summary> /// <param name="child"> The child. </param> /// <returns> The <see cref="OrderQuery"/>. </returns> public static OrderQuery OrderByKey(this ChildQuery child) { return(child.OrderBy("$key")); }
/// <summary> /// Order data by $value. Note that this is used mainly for following filtering queries and due to firebase implementation /// the data may actually not be ordered. /// </summary> /// <param name="child"> The child. </param> /// <returns> The <see cref="OrderQuery"/>. </returns> public static OrderQuery OrderByValue(this ChildQuery child) { return(child.OrderBy("$value")); }
/// <summary> /// Order data by given <see cref="propertyName"/>. Note that this is used mainly for following filtering queries and due to firebase implementation /// the data may actually not be ordered. /// </summary> /// <param name="child"> The child. </param> /// <param name="propertyName"> The property name. </param> /// <returns> The <see cref="OrderQuery"/>. </returns> public static OrderQuery OrderBy(this ChildQuery child, string propertyName) { return(child.OrderBy(() => propertyName)); }