title: Laravel sort and save position in database
body: <p>I have a table in my database called 'users', it has these columns:
  <code>id</code>, <code>points</code>, <code>rank</code>.</p>
  
  <p>Everytime I update points, I want to sort all users by points desc and save rank position in that column.</p>
  
  <p>I was wondering about getting all rows from database, sort them by using collection method and using update to update rank column. But i was wondering about how intense it would be to update 100k users one by one.</p>
  
  <p>Maybe some experienced Laravel developers can suggest me a best possible solution in this situation?</p>