fixed sorting of reports