Stack the Christmas Gifts
CJam, 81 70 bytes
'&quot;qN/{__Sm0=#&gt;}%N*&quot;=
=&quot;/&quot;=\&quot;\&quot;=&quot;*'&quot;++~]$_W='=/,f{1$'=/,m4/\N/\f{S*\N}}

So we have to stack the Christmas presents? This code does it like an actual person would do*.
First, we stack all the presents against a wall to easily move them up and down using this code:
'&quot;qN/{__Sm0=#&gt;}%N*

then, we identify each present as a separate item using this code:
&quot;=
=&quot;/&quot;=\&quot;\&quot;=&quot;*'&quot;++~]

then, we sort the presents based on their heights and widths using this code:
$

Till now, all the gifts have been stacked against a wall in order to have perfect alignment with each other. But as this is Christmas, we want to place the gifts aligned centered like a Christmas tree! This code does that:
_W=Af{1$Am4/\N/\f{S*\N}}

Here is a step by step output of the code for example in the question:
&quot;Step 1 - Stack the presents against a wall&quot;;
========================
|                      |
========================
=============
|           |
|           |
|           |
|           |
|           |
|           |
=============
=======
|     |
|     |
|     |
=======
===================
|                 |
|                 |
|                 |
===================
=================
|               |
|               |
|               |
|               |
=================
=======
|     |
|     |
=======

&quot;Step 2 - Identify the presents as a collection of presents&quot;;
[&quot;========================
|                      |
========================&quot; &quot;=============
|           |
|           |
|           |
|           |
|           |
|           |
=============&quot; &quot;=======
|     |
|     |
|     |
=======&quot; &quot;===================
|                 |
|                 |
|                 |
===================&quot; &quot;=================
|               |
|               |
|               |
|               |
=================&quot; &quot;=======
|     |
|     |
=======&quot;]

&quot;Step 3 - Sort on height &amp; width, with presents stacked against a wall to help sort them&quot;;
=======
|     |
|     |
=======
=======
|     |
|     |
|     |
=======
=============
|           |
|           |
|           |
|           |
|           |
|           |
=============
=================
|               |
|               |
|               |
|               |
=================
===================
|                 |
|                 |
|                 |
===================
========================
|                      |
========================

&quot;Final step - stack them like a Christmas Tree&quot;;
        =======
        |     |
        |     |
        =======
        =======
        |     |
        |     |
        |     |
        =======
     =============
     |           |
     |           |
     |           |
     |           |
     |           |
     |           |
     =============
   =================
   |               |
   |               |
   |               |
   |               |
   =================
  ===================
  |                 |
  |                 |
  |                 |
  ===================
========================
|                      |
========================

Try it online here
* Might differ from person to person though :P