On 28/11/2018 23:17, Martin Blais wrote:
> On Thu, Nov 29, 2018 at 1:14 AM Oon-Ee Ng <[email protected]
> 
>     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. 
> 
> 
> Yes. Sorted by date.

Is that documented?

Would it be a possibility to accept a datetime object instead that a
date object for the date field (and do not serialize the time part into
the written file) be enough to obtain sorting by date and time?

Actually, datetime objects are already accepted building metadata
instances and I guess the sorting does not strip the time away, thus
only the serialization would need to be changed. I guess I can prepare a
patch for this.

Cheers,
Dan

-- 
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/56675ab7-5d1c-b0f5-1abc-647a70eef105%40grinta.net.
For more options, visit https://groups.google.com/d/optout.

Reply via email to