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
Merge pull request #4152 from kurund/CRM-15190

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