public static bool rsort(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.Descending, false)); array.ReindexAll(); array.RestartIntrinsicEnumerator(); return true; }