title: How sort multidimensional array with first column (name of key) not costant and to parity of it for value?
body: <p>I have un multidimensional array so formed in input:</p>
  <pre><code>Array
  (
      [0] =&gt; Array
          (
              [tag] =&gt; meta
              [type] =&gt; complete
              [attributes] =&gt; Array
                  (
                      [property] =&gt; og:type
                      [content] =&gt; website
                  )
          )
      [1] =&gt; Array
          (
              [tag] =&gt; meta
              [type] =&gt; complete
              [attributes] =&gt; Array
                  (
                      [name] =&gt; robots
                      [content] =&gt; noindex, nofollow
                  )
          )
      [2] =&gt; Array
          (
              [tag] =&gt; meta
              [type] =&gt; complete
              [attributes] =&gt; Array
                  (
                      [name] =&gt; application
                      [content] =&gt; My Application
                  )
          )
      [3] =&gt; Array
          (
              [tag] =&gt; meta
              [type] =&gt; complete
              [attributes] =&gt; Array
                  (
                      [http-equiv] =&gt; content-type
                      [content] =&gt; text/html; charset=utf-8
                  )
          )
  )
  </code></pre>
  <p>How i can sort it with <code>array_multisort</code> for <strong>first column</strong> of <code>attributes</code> then for <strong>value of it</strong>, so to have as output:</p>
  <pre><code>Array
  (
      [0] =&gt; Array
          (
              [tag] =&gt; meta
              [type] =&gt; complete
              [attributes] =&gt; Array
                  (
                      [http-equiv] =&gt; content-type
                      [content] =&gt; text/html; charset=utf-8
                  )
          )
      [1] =&gt; Array
          (
              [tag] =&gt; meta
              [type] =&gt; complete
              [attributes] =&gt; Array
                  (
                      [name] =&gt; application
                      [content] =&gt; My Application
                  )
          )
      [2] =&gt; Array
          (
              [tag] =&gt; meta
              [type] =&gt; complete
              [attributes] =&gt; Array
                  (
                      [name] =&gt; robots
                      [content] =&gt; noindex, nofollow
                  )
          )
      [3] =&gt; Array
          (
              [tag] =&gt; meta
              [type] =&gt; complete
              [attributes] =&gt; Array
                  (
                      [property] =&gt; og:type
                      [content] =&gt; website
                  )
          )
  )
  </code></pre>
  <p>I Having some difficult to use it becouse <strong>first column</strong> of <strong>attributes</strong> <strong>not is a constant</strong>.
  Thanks.</p>