Fixed sorting in the report

Fixed sorting in the report