title: Mongoose find between dates, order by ID
body: <p>So I am trying to find all documents in a database between 'X' and 'X' dates and then order those by userID. This is what I have so far:</p>
  
  <pre><code>await Expense.find(
              {'date' :{'$gte': new Date(startDate), '$lte': new Date(endDate)}}),{sort: {_id: 1}}.exec(function(err, data){
                      if(err){
                          console.log('Error Fetching Model');
                          console.log(err);
                      }
                      console.log(JSON.stringify(data, null));
                      expenseArray = data;
                      console.log(expenseArray);
  </code></pre>
  
  <p>But it keeps giving me "TypeError: {(intermediate value)}.exec is not a function"</p>
  
  <p>For added clarification I am trying to write this in mongoose:</p>
  
  <pre><code>"SELECT employeeName, SUM(amount)
              FROM reimbursements
              WHERE d8 BETWEEN '$startDate' AND '$endDate'
              GROUP BY employeeName
              ORDER BY employeeName;";
  </code></pre>
  
  <p>What am I doing wrong? Thank you in advance :D</p>