CRM-11436 fix sortable on inactive relationships