text: public virtual Transition[][] GetSortedTransitions(){State[] states = GetNumberedStates();Transition[][] transitions = new Transition[states.Length][];foreach (State s in states){s.SortTransitions(Transition.COMPARE_BY_MIN_MAX_THEN_DEST);s.TrimTransitionsArray();transitions[s.number] = s.TransitionsArray;Debug.Assert(s.TransitionsArray != null);}return transitions;}