On Thu, Nov 29, 2018 at 2:06 PM Daniele Nicolodi <[email protected]> wrote:

> On 28/11/2018 20:53, Martin Blais wrote:
> >     The current source file for importing that I'm working on lists
> >     transaction in reverse chronological order (I want chronological, in
> >     this case) but also has a reference number that is monotonically
> >     increasing. So my current hack is to set line number for the
> >     transactions to be that reference number.
> >
> >
> > That seems not unlike the idea of storing the time in metadata -
> > discussed in a prior thread but not yet implemented - and to use that as
> > a secondary sort key. Maybe I can generalize this idea of a secondary
> > sort key to let users put whatever they want in there (as long as the
> > type is comparable, for sorting).
>
> Aren't directives written in the order in which they are returned by the
> importer?  I didn't see any mention of the fact that bean-extract does
> any sorting on its own in the documentation, but I may have missed it.
>
> Cheers,
> Dan
>

That was my impression as well, but after testing it out I found this was
not the case. The returned ordered list of transactions is then sorted by
date and line number.

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/CAGQ70esZ%2BSFkn4VcaG1dh%2BP1i%3DNgQ9rHvSdx-_8eVKvJ1%3DcRMg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to