title: How to sort array by date In JavaScript?
body: <p>I have a problem to sort arrays that are in an array object by date.</p>
  
  <p>I have an array object as below.</p>
  
  <pre><code>[
    {
      "name": "February",
      "plantingDate": "2018-02-04T17:00:00.000Z",
    },
    {
      "name": "March",
      "plantingDate": "2018-03-04T17:00:00.000Z",
    },
    {
      "name": "January",
      "plantingDate": "2018-01-17T17:00:00.000Z",
    }
  ]
  </code></pre>
  
  <p>How to sort the array in the array object from January to December, as below.</p>
  
  <pre><code>[
    {
      "name": "January",
      "plantingDate": "2018-01-17T17:00:00.000Z",
    },
    {
      "name": "February",
      "plantingDate": "2018-02-04T17:00:00.000Z",
    },
    {
      "name": "March",
      "plantingDate": "2018-03-04T17:00:00.000Z",
    }
  ]
  </code></pre>
  
  <p>I beg for help.</p>
  
  <p>Thank you in advance.</p>