title: Sequelize.js get orders divided by the status
body: <p>I have a Node.JS project and am using sequelize as the ORM.
  I would like to run a query where I get all of my orders grouped by the status. So I would get for example  an object with 5 keys (given that I have 5 different statuses). And in each key there would be an array with all orders that have that status.</p>
  <p>Example of object:</p>
  <pre><code>{
  
  &quot;Done&quot;: [{id:1, item: &quot;bag&quot;}, {id:2, item: &quot;purse&quot;}],
  &quot;Processing&quot;:  [{id:3, item: &quot;bag&quot;}, {id:4, item: &quot;purse&quot;}],
  &quot;Pending&quot;:  [{id:5, item: &quot;bag&quot;}, {id:6, item: &quot;purse&quot;}]
  
  }
  </code></pre>
  <p>Is this possible in any way or I need to get all possible statuses and just run the same number of queries each time changing the where clause?</p>
  <p>Thanks</p>