use Array.Sort for sorting children