CRM-15304 - DB Error on sorting Activities fields - Status, Type and Subject on Advance Search - Activity display mode

https://issues.civicrm.org/jira/browse/CRM-15304
Merge pull request #4145 from atif-shaikh/CRM-15304

CRM-15304 - DB Error on sorting Activities fields - Status, Type and Sub...