added sorting for expenditures