title: How do you sort UI elements in Canvas?
body: <p>I don't get how you sort UI elements Z-index in Unity inside a Canvas, is it by hierarchy order ?
  I'm trying to do a settings screen like in this video: <a href="https://www.youtube.com/watch?v=-qNo1jloR_k" rel="nofollow noreferrer">https://www.youtube.com/watch?v=-qNo1jloR_k</a></p>
  
  <p>It's quite simple, you click on the button and it set the whole panel as first sibling in the hierarchy.</p>
  
  <p>But this is what I get:
  <a href="https://gyazo.com/cec14f21df2ded191875e6a8cfd9f124" rel="nofollow noreferrer">https://gyazo.com/cec14f21df2ded191875e6a8cfd9f124</a></p>
  
  <p>Also, my gameplay panel had a red background, my graphics panel a green one, and my sound panel a yellow one.</p>
  
  <p>I could avoid this problem by changing alpha on panels, but would like to make it work with z sorting... that I can't seem to understand on Unity.</p>
  
  <p>Using unity 2017.1.2 and .NET 4.6 .</p>