views:

123

answers:

0

Sorting a flat ControlCollection by TabIndex in a container is straightforward. It's complicated, however, when you have to sort a hierarchical container because the controls are renumbered. So you get something list this:

  1. Control 0
  2. Control 1
  3. Control 2
    1. Control 3
    2. Control 4
  4. Control 5

How would I sort this?