CRM-13278 - Select fields for export "- related contact info -" fields are not sorted properly

http://issues.civicrm.org/jira/browse/CRM-13278
Merge pull request #2348 from dlobo/CRM-13278

CRM-13278 - Select fields for export "- related contact info -" fields are not sorted properly
CRM-13996, fixes sorting for search views

----------------------------------------
* CRM-13996: Advanced Search; Sorting of Results displayed in a custom profile fails and Advanced Search must be reset
  http://issues.civicrm.org/jira/browse/CRM-13996
Merge pull request #2351 from kurund/CRM-13996

CRM-13996, fixes sorting for search views