you can not sort on a field that is related to another data type. If you have a specific value from the related data type you want to use as the sort, you should create a field on the data type that is in the search that is a text value from the related data type you want to sort by