title: How to orderByValue onSnapshot using Firestore
body: <p>In <code>componentWillMount</code> I am registering an onSnapshot function which updates the state.</p>
  
  <pre><code>componentWillMount () {
      todoRef.onSnapshot((doc) =&gt; {
        let todos = []
        doc.forEach(doc =&gt; {todos.push(doc.data())})
        this.setState({
          todos
        })
      })
    }
  </code></pre>
  
  <p>However, the way that firebase/firestore works is that it just pushes up random keys, so when I get the data back it's not in the correct order.</p>
  
  <p>I know there is a <code>.orderByValue()</code> function but I've tried implementing it and can't seem to figure it out.</p>