private static int CompareValues(DataItem x, DataItem y) { return(string.Compare(x.Value.ToString(), y.Value.ToString())); }
private static int CompareNames(DataItem x, DataItem y) { return(string.Compare(x.Name, y.Name)); }