Giving Tree - Sorting of the Gifts