In some cases it is better to sort from the largest to the smallest box. As in my case, sorting large images last resulted in undesired clipping. To sort from large to small, you simply change a couple of lines in the QuickSortBoxes Function.
Change Lines
To
Change Lines
While qSortBox( A )\h < Middle
While Middle < qSortBox( B )\h
To
While qSortBox( A )\h > Middle
While Middle > qSortBox( B )\h