כיצד לבצע שינויים בצד ה-backend של יישום discourse באמצעות rails

I want to sort this right side links of topics for particular catgeory based on highest number of topics, It will need to change the modification on backend side right?