changed sorting for reports
added sorting