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

...ject on Advance Search - Activity display mode

https://issues.civicrm.org/jira/browse/CRM-15304