title: Golang MongoDB Driver sort
body: <p>How to query find using golang mongodb driver?</p>
  
  <p>I try this one :</p>
  
  <pre><code>db.Collection("products").Find(nil, bson.M{}, &amp;options.FindOptions{Sort: "-price"})
  </code></pre>
  
  <p>But I got this error :</p>
  
  <blockquote>
    <p>cannot transform type string to a BSON Document: WriteString can only write while positioned on a Element or Value but is positioned on a TopLevel</p>
  </blockquote>
  
  <p>I don't know what to pass to Sort variable becuase it is an interface{}.</p>