Solution : https://service.sap.com/sap/support/notes/672295 (SAP Service marketplace login required)
Key words : 
prerequisites program error solution implement, symptom shortdump itab_illegal_sort_order, terms importitab_illegal_sort_ordercrm_terrman_imp_i_templateterritorygt_territory_sort reason, report crm_terrman_imp_i_template, apply sp04, correction
Related Notes : 
       
| 696262 | CRM 4.0 SP Stack 1/2004 (SAPKU40004): Release & Info. Note |