Skip to content
Snippets Groups Projects
Commit cb8ab18e authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

fix ordering of configuration administration, fixes #144

parent 3fc7c1a5
No related branches found
No related tags found
No related merge requests found
...@@ -80,8 +80,6 @@ class Admin_ConfigurationController extends AuthenticatedController ...@@ -80,8 +80,6 @@ class Admin_ConfigurationController extends AuthenticatedController
*/ */
public function edit_configuration_action() public function edit_configuration_action()
{ {
$field = Request::get('field'); $field = Request::get('field');
$value = Request::get('value'); $value = Request::get('value');
......
...@@ -105,9 +105,7 @@ class Config implements ArrayAccess, Countable, IteratorAggregate ...@@ -105,9 +105,7 @@ class Config implements ArrayAccess, Countable, IteratorAggregate
}); });
} }
$fields = array_keys($temp); return array_keys($temp);
sort($fields, SORT_NATURAL | SORT_FLAG_CASE);
return $fields;
} }
/** /**
......
...@@ -57,6 +57,11 @@ class ConfigurationModel ...@@ -57,6 +57,11 @@ class ConfigurationModel
$allconfigs[] = $metadata; $allconfigs[] = $metadata;
} }
} }
usort($allconfigs, function ($a, $b) {
return strcmp($a['field'], $b['field']);
});
return $allconfigs; return $allconfigs;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment