pub fn sort_directives(directives: &mut [DirectiveWrapper])Expand description
Sort directives using beancount’s standard ordering.
This matches Python beancount’s entry_sortkey():
- Primary: date
- Secondary: directive type (Open, Balance, default, Document, Close)
- Tertiary: line number (preserves file order for same-date, same-type entries)