Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Sort triggers and actions
James Coleaed5ef3fba66
diff --git a/app/Http/Controllers/JsonController.php b/app/Http/Controllers/JsonController.phpindex f9162ed690..4805e620eb 100644--- a/app/Http/Controllers/JsonController.php+++ b/app/Http/Controllers/JsonController.php@@ -240,6 +240,7 @@ class JsonController extends Controller$triggers[$key] = trans('firefly.rule_trigger_' . $key . '_choice');}}+ asort($triggers);$view = view('rules.partials.trigger', compact('triggers', 'count'))->render();diff --git a/app/Support/Twig/Rule.php b/app/Support/Twig/Rule.phpindex 9924e6f7a0..42efe5a2b6 100644--- a/app/Support/Twig/Rule.php+++ b/app/Support/Twig/Rule.php@@ -39,6 +39,7 @@ class Rule extends Twig_Extension$possibleActions[$key] = trans('firefly.rule_action_' . $key . '_choice');}unset($key, $ruleActions);+ asort($possibleActions);return $possibleActions;}@@ -75,6 +76,7 @@ class Rule extends Twig_Extension}}unset($key, $ruleTriggers);+ asort($possibleTriggers);return $possibleTriggers;}