feincms / django-tree-queries

Adjacency-list trees for Django using recursive common table expressions. Supports PostgreSQL, sqlite, MySQL and MariaDB.
https://django-tree-queries.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
427 stars 27 forks source link

Add `order_siblings_by` queryset method #36

Closed rhomboss closed 2 years ago

rhomboss commented 2 years ago

Add an order_siblings_by queryset method to allow the tree sibling ordering to be specified in a queryset. Add sibling ordering test to the testapp to verify the function of order_siblings_by

matthiask commented 2 years ago

Thanks! That's great.