diff --git a/application/forms/AddNodeForm.php b/application/forms/AddNodeForm.php index 9cf63ae..0b27a35 100644 --- a/application/forms/AddNodeForm.php +++ b/application/forms/AddNodeForm.php @@ -339,7 +339,7 @@ class AddNodeForm extends QuickForm } } - natsort($list); + natcasesort($list); return $list; } diff --git a/application/forms/EditNodeForm.php b/application/forms/EditNodeForm.php index 8ac4a52..cc7926c 100644 --- a/application/forms/EditNodeForm.php +++ b/application/forms/EditNodeForm.php @@ -374,7 +374,7 @@ class EditNodeForm extends QuickForm } } - natsort($list); + natcasesort($list); return $list; } diff --git a/library/Businessprocess/BpConfig.php b/library/Businessprocess/BpConfig.php index 4f1bc73..5b20056 100644 --- a/library/Businessprocess/BpConfig.php +++ b/library/Businessprocess/BpConfig.php @@ -368,14 +368,14 @@ class BpConfig */ public function getRootNodes() { - ksort($this->root_nodes); + ksort($this->root_nodes, SORT_NATURAL | SORT_FLAG_CASE); return $this->root_nodes; } public function listRootNodes() { $names = array_keys($this->root_nodes); - sort($names); + natcasesort($names); return $names; } @@ -665,7 +665,7 @@ class BpConfig $nodes[$name] = $name === $alias ? $name : sprintf('%s (%s)', $alias, $node); } - natsort($nodes); + natcasesort($nodes); return $nodes; } diff --git a/library/Businessprocess/BpNode.php b/library/Businessprocess/BpNode.php index 8f97e55..9441619 100644 --- a/library/Businessprocess/BpNode.php +++ b/library/Businessprocess/BpNode.php @@ -426,7 +426,7 @@ class BpNode extends Node public function setChildNames($names) { - sort($names); + natcasesort($names); $this->childNames = $names; $this->children = null; return $this; @@ -446,7 +446,7 @@ class BpNode extends Node { if ($this->children === null) { $this->children = array(); - natsort($this->childNames); + natcasesort($this->childNames); foreach ($this->childNames as $name) { $this->children[$name] = $this->bp->getNode($name); $this->children[$name]->addParent($this);