User#rank is more natural but handling rank using the table created for that purpose sound more convenient.