Imagine that I have an mptt tree of objects and their population like:
Animal, 60
- aardvark, 30
- bobcat, 20
- chipmunk, 10
Vegetable, 6
- apple, 1
- beet, 2
- cauliflower, 3
Mineral 0
How would you sort the above by population on each sublevel? I want to get to:
Animal, 60
- aardvark, 30
- bobcat, 20
- chipmunk, 10
Vegetable, 6
- cauliflower, 3
- beet, 2
- apple, 1
Mineral 0
I am building off of mptt in django.