Skip to content

Sorting by nested or hierarchial Reactable order  #180

@mbryne

Description

@mbryne

Greetings,

Thank you very much for your efforts on this package over its many iterations, it is obvious that a lot of time and thought has gone into it and it is very much appreciated.

I am in the process of implementing threaded commenting for our application, so a Comment can have a parent Comment etc. I would like to be able sort Comments within an individual conversation thread (similar to reddit's 'Best' option for comments).

How feasible would this be with the existing reaction_like_weight / reaction_like_count ordering already in place? Could this be solved with some kind of multiplication of the reaction weight by the depth of the conversation so top level conversations have a higher weight (* 10000) with lower depths (* 1000, * 100) etc?

Is there a way to define the overall scope of a Reactable model to include things like parent_id etc?

I'm happy to dig in and play around but I figured there is no harm in asking up front before I do so,

Many thanks in advance,
Michael

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