Menu

Table Sort

Introduction

By default, the leaderboard is sorted after the first table column, which is typically rank or position. The sorting can be changed by clicking on the table header of the desired column. Another click on it changes the sort direction.

If you want to change the default sorting, you can do this through a relatively simple change.

Details

  • Open the file templates/plugin.html or templates/standalone.html. Depending on which mode you are using ezStats.
  • Search for the text fragment sortList.
  • If you want to sort by the fourth column of the leaderboard, in ascending order, then change the row into this: sortList: [[3,0]],
  • If you want to sort by the first column of the leaderboard, in descending order, then change the row into this: sortList: [[0,1]],
  • If you want to sort by the eighth column of the leaderboard, in descending order, then change the row into this: sortList: [[7,1]],

    ... and so on.


Related

Wiki: Home

MongoDB Logo MongoDB