static void SortRecursive(ArrayList ar) { if (ar == null) return; ar.Sort (); foreach (AllocNode an in ar) SortRecursive (an.Children); }