fix for narrative sorting for math at the end of reports