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";