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