CRM-12490 - order-by fatal error fix
Merge pull request #1568 from deepak-srivastava/reports

CRM-12490 - order-by fatal error fix