Skip to content

Does order need to matter? #5

@RyanEwen

Description

@RyanEwen

Hi there,

I just finished writing code to format a large set of data to be shown in tree form, however now that I am done I am surprised to find out that the order of the data matters. In my case I get data in order of depth, meaning that I get all of the top level items before I get the children for any of them. This causes all of the children to show up at the bottom of the tree rather than under their parent, since they are listed in the array this way.

I am going to work around this, but it wasn't mentioned as a requirement in the readme, and if possible, shouldn't be a requirement (imo).

If it's a requirement, would you mind adding that to the documentation?

Cheers,
Ryan

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