title: MongoDB Search and Sort, with Number of Matches and Exact Match
body: <p>I want to create a small MongoDB Search Query where I want to sort the result set based exact match followed by no. of matches. </p>
  
  <p>For eg. if I have following labels</p>
  
  <pre><code>Physics
  11th-Physics
  JEE-IIT-Physics
  Physics-Physics
  </code></pre>
  
  <p>Then, if I search for "Physics" it should sort as </p>
  
  <pre><code>Physics
  Physics-Physics
  11th-Physics
  JEE-IIT-Physics
  </code></pre>