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