Skip to content

Preserve Ordering of Children #12

@zachriggle

Description

@zachriggle

It looks like pptree does not preserve ordering of child elements. I wrote a naive "tree" view by iterating recursively through node.children and get this, correct ordering:

A OmniFocus
    B
    C
    D
    E

vs

          ┌B
          ├C
        A ┤
          ├E
          └D

I expect this is because we take the 1/2 of the number of children, and put half above the line and half below the line. All that needs to change is the reverse-order (or un-reverse-order?) of the "after" children to get a correctly-ordered result.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions