CRM-15190, fixes for sorting when on page > 1

----------------------------------------
* CRM-15190: Contact search paging/sorting partially broken
  https://issues.civicrm.org/jira/browse/CRM-15190