Only sort children after reading additional entries

This commit is contained in:
Deon George
2009-08-22 12:56:11 +10:00
parent 76ddeccf8c
commit 26fa2ba2c5
3 changed files with 39 additions and 3 deletions

View File

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