changed sorting for reports