title: how can i sort map data in descending order which is already in ascending order in react-native?
body: <pre><code>constructor(props) {
  super(props);
   let comments = [{body: "good", created_at:"2018-02-12T05:27:47.175Z"},
                   {body: "bad article", created_at:"2017-11-12T05:27:47.175Z"}, 
                   {body: "great", created_at:"2017-10-12T05:27:47.175Z"}];
    this.state = { comments };
  render() {
   return(
   { comments.map((comment, index) =&gt;
      &lt;Text&gt;{comment.body}&lt;/Text&gt;
    )}
   );
  };
  </code></pre>
  
  <p>The data comes in descending order but, I want to sort it in ascending order based on <code>created_at</code> date.</p>
  
  <p>Now, comment which is new is coming first and I want comment which is old should come first.</p>
  
  <p>How can I sort this comments? Please suggest any solution.</p>