Only consider first X entries for sorting
Only consider first X entries for sorting
Hey guys,
I'm currently using DataTables for a server ranking of an multiplayer online game. Everything's running fine except I want to consider only the first e.g. 200 entries (by id) for sorting.
To illustrate my problem: players can sort by diffrent kind of data like score or points per minute. However, every player's data is saved even the ones only playing for like 5 minutes. At this point there are about 45,000 unique entries.
But these kind of players are not that interesting, you rather want to see how the active players (e.g. Top200) perform so I want to limit the sorting to the first 200 entries by ID.
Is there any way to do it?
Cheers,
Alex
This question has an accepted answers - jump to answer
Answers
Unfortunately no - DataTables will always use the entire table for sorting. If you wanted only some plays to be considered you'd need to filter out those that you don't want.
Allan