*always*, since it is used recursively, so checking for a number of
top level nodes is useless. This should fix a case where we were not
sorting any node with a single root node.
2010-04-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
svn path=/trunk/mcs/; revision=155391
+2010-04-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+ * TreeView.cs: We must use the comparer supplied by TreeViewNodeSorter
+ *always*, since it is used recursively, so checking for a number of
+ top level nodes is useless. This should fix a case where we were not
+ sorting any node with a single root node.
+
2010-04-14 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* DataGridView.cs: Call the base Paint impl last, instead of do that
#if NET_2_0
public void Sort ()
{
- Sort (Nodes.Count >= 2 ? tree_view_node_sorter : null);
+ Sort (tree_view_node_sorter);
}
#endif