private void SortChildrenRecursively(TreeViewItem item, BaseHierarchySort comparer) { if (item == null || !item.hasChildren) return; item.children = item.children.OrderBy<TreeViewItem, GameObject>((Func<TreeViewItem, GameObject>) (x => (x as GameObjectTreeViewItem).objectPPTR as GameObject), (IComparer<GameObject>) comparer).ToList<TreeViewItem>(); for (int index = 0; index < item.children.Count; ++index) this.SortChildrenRecursively(item.children[index], comparer); }
private void SortChildrenRecursively(TreeViewItem item, BaseHierarchySort comparer) { if (item == null || !item.hasChildren) { return; } item.children = item.children.OrderBy((TreeViewItem x) => (x as GameObjectTreeViewItem).objectPPTR as GameObject, comparer).ToList<TreeViewItem>(); for (int i = 0; i < item.children.Count; i++) { this.SortChildrenRecursively(item.children[i], comparer); } }
private void SortChildrenRecursively(TreeViewItem item, BaseHierarchySort comparer) { if ((item != null) && item.hasChildren) { if (<>f__am$cache7 == null) {