CRM-14438 and CRM-13996 fix to populate prev/next cache when sorting in ...

...advanced search using profile search view

----------------------------------------
* CRM-14438: Can't select contact records from custom search profile when sorted by Current Employer
  https://issues.civicrm.org/jira/browse/CRM-14438
* CRM-13996: Advanced Search; Sorting of Results displayed in a custom profile fails and Advanced Search must be reset
  https://issues.civicrm.org/jira/browse/CRM-13996