From 530967f28a60a7a7e7a1e487ab2f6dfadc0bd28d Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Wed, 10 Jan 2024 12:22:36 -0700 Subject: [PATCH] When using natural_sort cast to text --- app/voicemails/app_config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/voicemails/app_config.php b/app/voicemails/app_config.php index 31e8100851..afb5f4455c 100644 --- a/app/voicemails/app_config.php +++ b/app/voicemails/app_config.php @@ -36,7 +36,7 @@ $apps[$x]['destinations'][$y]['name'] = "voicemails"; $apps[$x]['destinations'][$y]['sql'] = "select voicemail_uuid, voicemail_uuid as uuid, voicemail_id as destination, '*99' || voicemail_id as extension, voicemail_description as description, voicemail_description as name from v_voicemails"; $apps[$x]['destinations'][$y]['where'] = "where domain_uuid = '\${domain_uuid}' and voicemail_enabled = 'true' "; - $apps[$x]['destinations'][$y]['order_by'] = "natural_sort(voicemail_id) asc "; + $apps[$x]['destinations'][$y]['order_by'] = "natural_sort(voicemail_id::text) asc "; $apps[$x]['destinations'][$y]['field']['uuid'] = "voicemail_uuid"; $apps[$x]['destinations'][$y]['field']['voicemail_uuid'] = "voicemail_uuid"; $apps[$x]['destinations'][$y]['field']['destination'] = "voicemail_id";