Ui Button in World Space Sorting Order?

Hello

Let me explain my problem.

From a database I create buttons in a World Space.
The problem is that some buttons are displayed in front of other. (screenshot)

Personally I would like the closest buttons from the camera to be in front of other and the only way I have found to do that may be overkill.
Continually reorganize the hierarchy depending on the distance from the camera.

I’m looking for another way.

Thanks for your help.

First part of a Solution

Source : Geisha Tokyo Engineer's Blog - Unity 4.6 UI Tip: Override sorting with Canvas

From there all I have to do it’s reorder according of the distance of the camera

Still thinking it’s overkill, so if u have a solution :wink:

Edit : Using AddComponent makes me lose too much fps :cry:

I still use AddComponent until I found a better way.

But I got another issue, how to AddComponent or AddComponent?