Details
- 
    Type:
Bug
 - 
    Status: Open
 - 
    Priority:
Trivial
 - 
    Resolution: Unresolved
 - 
    Affects Version/s: 4.4.20, 4.6.10
 - 
    Fix Version/s: Unscheduled
 - 
    Component/s: None
 - 
    Labels:
 
- 
        Versioning Impact:Patch (backwards-compatible bug fixes)
 - 
        Documentation Required?:None
 - 
        Funding Source:Needs Funding
 
Description
When a contact reference field is used in sorting search results it is sorted on the contact id in the field but it should be sorted on the diplay_name of the contact (at least the user sees the display name)
How to reproduce?
- Create a contact reference custom field
 - Create a profile for search views and including the custom field from above
 - Fill in the contact reference field with some contacts
 - Do an advanced search with the created profile
 - Sort on the contact reference custom field