BUG Fix sorting on main ReportAdmin grid ref: CWPBUG-133

This is a downstream patch from 3.1, originating from a [3.1 -> master mergeback](https://github.com/silverstripe/silverstripe-framework/pull/3379) (the patch no longer applies to the master branch of FW).