title: Firestore order by time but sort by ID
body: <p>I have been trying to figure out a way to query a list of documents where I have a range filter on one field and order by another field which of course  isn't possible, see my other question: <a href="https://stackoverflow.com/questions/49825470/order-by-timestamp-with-range-filter-on-different-field-swift-firestore/49828778?noredirect=1#comment86673304_49828778">Order by timestamp with range filter on different field Swift Firestore</a></p>
  
  <p>But is it possible to save documents with the timestamp as id and then it would sort by default? Or maybe hardcode an ID, then retrieve the last created document id and increase id by one for the next post to be uploaded? </p>
  
  <p>This shows how the documents is ordered in the collection</p>
  
  <p><a href="https://i.stack.imgur.com/kE8WL.png" rel="noreferrer"><img src="https://i.stack.imgur.com/kE8WL.png" alt="This shows how the documents is ordered in the collection"></a></p>
  
  <p>Any ideas how to store documents so they are ordered by created at in the collection? </p>