Skip to content

Order children differently #159

Open
@Linuus

Description

@Linuus

Hi!

I'm using awesome_nested_set today to create nested comments but looking to switch to something else but I have some questions.

Is it possible to have different ordering of nested comments? I want the root comments to be sorted with the newest first, but the rest with the newest last.

Example:

- Comment 2
  - Comment 3
    - Comment 5
    - Comment 6
  - Comment 4
- Comment 1
  - Comment 7

Today, with awesome_nested_set, I fetch all root comments and then do a separate request for each root to fetch the children.

Is there a more performant way to do it in closure_tree?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions