Destination/Action Select: Implement natural sorting for multiple apps.

This commit is contained in:
fusionate
2023-10-19 18:02:00 +00:00
parent bca1e75e02
commit f1ab4c365e
10 changed files with 12 additions and 12 deletions
+1 -1
View File
@@ -36,7 +36,7 @@
$apps[$x]['destinations'][$y]['name'] = "time_conditions";
$apps[$x]['destinations'][$y]['sql'] = "select dialplan_uuid as time_condition_uuid, dialplan_uuid as uuid, dialplan_name as name, dialplan_number as destination, dialplan_number as extension, dialplan_context as context, dialplan_description as description from v_dialplans ";
$apps[$x]['destinations'][$y]['where'] = "where (domain_uuid = '\${domain_uuid}' or domain_uuid is null) and app_uuid = '4b821450-926b-175a-af93-a03c441818b1' and dialplan_enabled = 'true' ";
$apps[$x]['destinations'][$y]['order_by'] = "dialplan_number asc";
$apps[$x]['destinations'][$y]['order_by'] = "natural_sort(dialplan_number) asc";
$apps[$x]['destinations'][$y]['field']['context'] = "context";
$apps[$x]['destinations'][$y]['field']['name'] = "dialplan_name";
$apps[$x]['destinations'][$y]['field']['destination'] = "dialplan_number";