public WrappedArray <T> Sort(System.Comparison <T> comparison = null) { if (comparison.IsNull()) { System.Array.Sort(array); } else { System.Array.Sort(array, comparison); } return(this); }
public static T[] Sort <T>(this T[] a, System.Comparison <T> comparison = null) { if (a.IsNull()) { throw new System.NullReferenceException(); } if (comparison.IsNull()) { System.Array.Sort(a); } else { System.Array.Sort(a, comparison); } return(a); }