title: MongoDB - sort by words
body: <p>Having data like below.</p>
  
  <pre><code>{
      "summary": "testing api1",
      "UpdatedDate": {
          "$date": "2018-12-30T00:00:00.000Z"
      },
      "status": "draft"
  },
  {
      "summary": "testing api2",
      "UpdatedDate": {
          "$date": "2018-12-30T00:00:00.000Z"
      },
      "status": "published"
  },
  {
      "summary": "testing api3",
      "UpdatedDate": {
          "$date": "2018-12-30T00:00:00.000Z"
      },
      "status": "delete"
  }
  </code></pre>
  
  <p>I want to sort based "<strong>status</strong>" 
  For ex: If I have given sort by status "<strong>published</strong>" then I need data like below</p>
  
  <pre><code>{
      "summary": "testing api2",
      "UpdatedDate": {
          "$date": "2018-12-31T00:00:00.000Z"
      },
      "status": "published"
  },
  {
      "summary": "testing api1",
      "UpdatedDate": {
          "$date": "2018-12-30T00:00:00.000Z"
      },
      "status": "draft"
  },
  {
      "summary": "testing api3",
      "UpdatedDate": {
          "$date": "2019-01-01T00:00:00.000Z"
      },
      "status": "delete"
  }
  </code></pre>
  
  <p>It's possible in mongodb? or anything available similar like this? </p>