Fixed sorting in the report
Merge pull request #1125 from psav/fix_sort

Fixed sorting in the report