public static bool ksort(Context ctx, [In, Out]PhpArray array, ComparisonMethod comparisonMethod = ComparisonMethod.Regular) { if (array == null) { //PhpException.ReferenceNull("array"); //return false; throw new ArgumentNullException(); } array.Sort(GetComparer(ctx, comparisonMethod, SortingOrder.Ascending, true)); array.RestartIntrinsicEnumerator(); return true; }