Performance improvements for the tree.

This commit is contained in:
Deon George
2009-08-19 21:19:35 +10:00
parent 5669c92371
commit ebe2cb6eda
4 changed files with 16 additions and 8 deletions

View File

@@ -149,7 +149,10 @@ class AJAXTree extends HTMLTree {
debug_log('Entered (%%)',33,0,__FILE__,__LINE__,__METHOD__,$fargs);
$children = array();
foreach ($parent_entry->getChildren() as $child) {
$pchildren = $parent_entry->getChildren();
usort($pchildren,'pla_compare_dns');
foreach ($pchildren as $child) {
if (! $this->getEntry($child))
$this->addEntry($child);