title: What is a good design for Ranking System
body: <p>I have a <code>USER</code> table, that has <code>userId</code> and <code>point</code> fields. At runtime, I want to know what is a ranking of a particular user base on their point. What is the best way to accomplish this:<br>
  1: Query all users into a list. Sort the list base on point and do a binary search to find the ranking of that user. Sound like a bad idea here.<br>
  2: Is it possible to accomplish these tasks by creating database queries?</p>
  
  <p>I expect 2000-5000 users.</p>