When a csv file is extracted, the transactions are printed out with the oldest date first and the newest date last. I was wondering if there is a way to reverse the sort order, i.e. print out the newest date first and the oldest date last, as this is how I prefer to have them ordered in my file.
I looked in the code, and I thought the sort order might be set in ingest/importers/data.py by the function sorted(entries). It seems to call the Python function sorted(). Sorted(entries) seems to be a function, so it cannot be overridden, so I tried changing the code and adding a True to the functin call to reverse it as an experiment (I realize any change I make to the code is not the best way, and will break on an update). It didn't work though, the date order was still the same, so either I did not interpret things correctly or missed something.
Is there an easy way to reverse the sort order? Apoligies if it is something I should have seen in the documentation or the Google Groups.
Jonathan