Skip to content

Feature request: ordering children differently at different levels of the tree #90

@rebdev

Description

@rebdev

I've using closure_tree for my comments, but now need to make threads with recent activity rise to the start of the nested_comments hash. In other words, I'm wanting Comment.roots to be ordered in ascending order by created_at, but comments below generation_level 1 in the resulting hash_tree to be ordered in descending order by created_at. This really just to get the hash tree out in a single query still.

Of course the proposal not be of any use to anyone other than myself. Putting it out there in case other applications might be possible that might benefit from it!

Cheers and thanks for the great gem! :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions