Wow!  Thanks Martin.  Hmm, it looks like I looked too deep.  I will try it 
out when I get back from vacation.

Jonathan.

On Sunday, January 8, 2017 at 11:37:07 PM UTC-5, Martin Blais wrote:
>
> You got it.
>
> https://bitbucket.org/blais/beancount/commits/80164efbf9ae7d19c1e929f5b4809821e99a0b6d
>  
> <https://www.google.com/url?q=https%3A%2F%2Fbitbucket.org%2Fblais%2Fbeancount%2Fcommits%2F80164efbf9ae7d19c1e929f5b4809821e99a0b6d&sa=D&sntz=1&usg=AFQjCNEV7yYrJzPMMDAk0oR2qiTVUfRefw>
>
> bean-extract --reverse ...
>
>
>
> On Sun, Jan 8, 2017 at 9:09 PM, <jfs...@gmail.com <javascript:>> wrote:
>
>> 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
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Beancount" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to beancount+...@googlegroups.com <javascript:>.
>> To post to this group, send email to bean...@googlegroups.com 
>> <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/beancount/34af184f-db4e-4978-8177-d4dc7f8636a6%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/beancount/34af184f-db4e-4978-8177-d4dc7f8636a6%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beancount+unsubscr...@googlegroups.com.
To post to this group, send email to beancount@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/b01d5d40-573f-4d96-a582-63333a986c42%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to