public static CAMLOrderBy OrderBy(string fieldName, bool desc = false) { var expression = new CAMLOrderBy(); expression.Expression = string.Format("<FieldRef Name=\"{0}\" {1} />", fieldName, desc ? "Ascending=\"False\"" : ""); return(expression); }
public CAMLBuilder OrderBy(Guid fieldId, bool desc = false) { _orders.Add(CAMLOrderBy.OrderBy(fieldId, desc)); return(this); }
public CAMLBuilder OrderBy(string fieldName, bool desc = false) { _orders.Add(CAMLOrderBy.OrderBy(fieldName, desc)); return(this); }