idlesign/django-sitetree — pull request #59 by Brendtron5000 (2012-06-01 22:58:52+00:00)
Title: Order by parent__sort_order instead of parent

Currently get_sitetree does:

order_by('parent', 'sort_order')

When trying to use sitetree_menu to render specific items, we are unable to change the ordering of items, because they are ordered by the parent ID -- something we can't change. That doesn't really make sense to me. This pull request changes the order_by:

order_by('parent__sort_order', 'sort_order')