title: Sort array of maps using keys matching a value GO
body: <p>I have just started programming in Golang and want to sort an array of maps. I have an array of maps. Let's call it example_array. </p>
  
  <pre><code>example_array = [
    [
      { Name: "A", Value: 100 }, 
      { Name: "B", Value: 60 }, 
      { Name: "C", Value: 170 }, 
      { Name: "D", Value: 120} 
    ], 
    [
      { Name: "A", Value: 64 }, 
      { Name: "B", Value: 90 }, 
      { Name: "C", Value: 52 }, 
      { Name: "D", Value: 98} 
    ], 
    [
      { Name: "A", Value: 154 }, 
      { Name: "B", Value: 190 }, 
      { Name: "C", Value: 179 }, 
      { Name: "D", Value: 67 } 
    ]
  </code></pre>
  
  <p>]</p>
  
  <p>Now I want to sort this array using value of key <code>"C"</code> so the example_array should be modified to -></p>
  
  <pre><code>[
  [{Name: "A", Value: 64}, {Name: "B", Value: 90}, {Name: "C", Value: 52}, {Name: "D", Value: 98}],
  [{Name: "A", Value: 100}, {Name: "B", Value: 60}, {Name: "C", Value: 170}, {Name: "D", Value: 120}], 
  [{Name: "A", Value: 154}, {Name: "B", Value: 190}, {Name: "C", Value: 179}, {Name: "D", Value: 67}]
  ]
  </code></pre>
  
  <p>If I sort the original array using value of key <code>"D"</code>, the original array should be modified to -></p>
  
  <pre><code>[
  [{Name: "A", Value: 154}, {Name: "B", Value: 190}, {Name: "C", Value: 179}, {Name: "D", Value: 67}],
  [{Name: "A", Value: 64}, {Name: "B", Value: 90}, {Name: "C", Value: 52}, {Name: "D", Value: 98}]
  [{Name: "A", Value: 100}, {Name: "B", Value: 60}, {Name: "C", Value: 170}, {Name: "D", Value: 120}]
  ]
  </code></pre>
  
  <p>How can I sort these array of maps in Golang. Please help!</p>