django-mptt/django-mptt — pull request #217 by midiotthimble (2012-10-18 08:52:00+00:00)
Title: Fixes wrong order for cache_tree_children

For example, I have a tree (plus means is published, minus means is unpublished):

- Shop
+ Apparel & Accessories
- Subcategory (Apparel & Accessories)
- Automobiles & Motorcycles
+ Subcategory (Automobiles & Motorcycles)

I want to show only published categories with cache_tree_children and will get like that:

+ Apparel & Accessories
+ Subcategory (Automobiles & Motorcycles)

Tests included.