protected void AddOrdering(SodaQueryComparator.Direction direction, IList path) { if (i_field != null) { path.Add(i_field); } if (i_parent != null) { i_parent.AddOrdering(direction, path); return; } string[] fieldPath = ReverseFieldPath(path); RemoveExistingOrderingFor(fieldPath); Orderings().Add(new SodaQueryComparator.Ordering(direction, fieldPath)); }
private static string DirectionString(SodaQueryComparator.Direction direction) { return(direction.Equals(SodaQueryComparator.Direction.Descending) ? "desc" : "asc"); }
private void AddOrdering(SodaQueryComparator.Direction direction) { AddOrdering(direction, new ArrayList()); }