Skip to content

Results are reversed #6

Closed
Closed
@wooorm

Description

@wooorm

Subject of the issue

To find stuff before, we walk back, and add nodes in the order they are found. That doesn’t make sense: results should be in the order they exist in the tree.

Your environment

n/a

Steps to reproduce

See readme: https://github.com/syntax-tree/unist-util-find-all-before#use

Expected behavior

Leaf 1 then 4.

Actual behavior

Leaf 4 then 1.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions