EZP-22105: fixed sort table name for external tables