Commit d33b87a2 authored by Ad Schellevis's avatar Ad Schellevis Committed by Franco Fichtner

(ids) fix sort order of rulesets

(cherry picked from commit 10d4cbfd)
parent ab8312b4
...@@ -269,6 +269,10 @@ class SettingsController extends ApiControllerBase ...@@ -269,6 +269,10 @@ class SettingsController extends ApiControllerBase
{ {
$result = array(); $result = array();
$result['rows'] = $this->listInstallableRules(); $result['rows'] = $this->listInstallableRules();
// sort by description
usort($result['rows'], function ($item1, $item2) {
return strcmp(strtolower($item1['description']), strtolower($item2['description']));
});
$result['rowCount'] = count($result['rows']); $result['rowCount'] = count($result['rows']);
$result['total'] = count($result['rows']); $result['total'] = count($result['rows']);
$result['current'] = 1; $result['current'] = 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment