Swapping Buttons in array
===

I have an array of my custom made buttons: 

    Button buttons[5]

Now I want to swap two elements of this array, for example buttons[1] and buttons[2]. How do I do this? Just stating the following, doesnt work:

    Button help = buttons[1];
    buttons[1] = buttons[2];
    buttons[2] = help;

Can anybody help me with this?