title: mongoose/mongodb - Arrange documents in descending order based on a document's index, placing the result in an array
body: <p>look at this schema for example:</p>
  <pre><code>const mongoose = require('mongoose');
  const Schema = mongoose.Schema;
  
  let MySchema = new Schema({
      _id: {type: String},
      theItem: {type: Number}
  })
  
  const MySchema = mongoose.model(&quot;MySchema&quot;, MySchemaSchema)
  module.exports = MySchema
  </code></pre>
  <p>What I want to get is a array like this:</p>
  <p><code>result = [{_id: &quot;idB&quot;, theItem: 500}, {_id: &quot;idA&quot;, theItem: 400}, {_id: &quot;idC&quot;, theItem: 200}]</code>
  (with only the first 10, for example)</p>
  <p>Can someone help me with this?</p>