title: Sort alphabetically a list of results: with MongoDB or JavaScript client?
body: <p>I'm having a deep discussion with a friend of mine; we have a collection containing documents with one field "Name", among other fields. We need to show these documents, sorted alphabetically by that field, on the client.</p>
  
  <p>We're using MongoDB to get those results and display a list. It's a simple find() query.</p>
  
  <p>I think that the better approach is to use the sort method on the MongoDB query to get this list directly sorted alphabetically via <code>.sort({ Name: 1 })</code>, but he says to instead use the JavaScript client to sort the collection and then show it to the user.</p>
  
  <p>What is the best solution and why? Thanks!</p>
  
  <p>More info:</p>
  
  <ul>
  <li>For now, there's only 20 or 25 results.</li>
  <li>We're not paging.</li>
  </ul>