mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
CustomVariableDictionary: better sorting for diffs
This commit is contained in:
parent
426fd6e344
commit
e3d38f718f
@ -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…
x
Reference in New Issue
Block a user