title: Firestore - Orderby Descending
body: <p>In my Firestore database I have field index no, datatype is string but he data is number like 1, 2, 3 and so on.</p>
  
  <pre><code>collectionReference
       .orderBy("indexNo", Query.Direction.DESCENDING)
  </code></pre>
  
  <p>the output is ok till 9, after 9 i.e., for 10, 11, 12, the data is displayed 1, 10, 11, 12, 2, 3 and so on.</p>
  
  <p>Pleas guide me to resolve it, as these numbers will decide the arrangement of cardview items in recycler view.</p>
  
  <p>Thanks... </p>