mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2026-05-28 04:35:53 -04:00
CustomVariableDictionary: better sorting for diffs
This commit is contained in:
parent
426fd6e344
commit
e3d38f718f
1 changed files with 3 additions and 1 deletions
|
|
@ -60,6 +60,8 @@ class CustomVariableDictionary extends CustomVariable implements Countable
|
|||
public function getValue()
|
||||
{
|
||||
$ret = (object) array();
|
||||
ksort($this->value);
|
||||
|
||||
foreach ($this->value as $key => $var) {
|
||||
$ret->$key = $var->getValue();
|
||||
}
|
||||
|
|
@ -70,7 +72,7 @@ class CustomVariableDictionary extends CustomVariable implements Countable
|
|||
public function listKeys()
|
||||
{
|
||||
$keys = array_keys($this->value);
|
||||
ksort($keys);
|
||||
sort($keys);
|
||||
return $keys;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue