Fixed sorting in the report