title: How to store a sorted list in Google Firestore
body: <p>How would you store an ordered list of N items in Google Firestore?</p>
  
  <p>For example, a todo list. I had a couple of ideas but neither seem that smart. </p>
  
  <p>You could put a 'position' key on the item but that would require updating all of the items' position value when one changes. </p>
  
  <p>You could store them in a sorted array and do some splicing to resort before persisting. </p>
  
  <p>I'd be keen to hear what is the recommend approach. </p>