#2069 - Change "Fix your Gallery" task go faster and be more comprehensive.
- optimize MPTT pointer rebuilding for leaf nodes (i.e. non-albums).
- reverse order_by to try and preserve existing tree ordering.
- reset item level while we're here.
- use "$stack[] = 123" instead of array_push($stack, 123) since it's faster.

--HG--
extra : source : 297e4c0eccc5a7940224ff8e908b366e83017354
Merge pull request #367 from shadlaws/fix_2069_master

#2069 - Change "Fix your Gallery" task go faster and be more comprehensive.
Automated update of .build_number to 413 for branch master
Last update: 4d8fbd1b9d61463ed255b3a73e6e6b3574d97923 (1 commits ago)
[ci skip]