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

fix ordering of configuration administration, fixes #144

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