added sorting of expenses according to date. turned out to be really easy with the sort routine from c+