Please sign in to comment.
Version 3 proposal: Add a `:sort_by` option
As indicated in #29, the currently undocumented behavior of a direct call to `ranked_in_list` is to do no sorting on the results. The call was originally intended to be used to retrieve a list of friends from a leaderboard. However, it would be useful in certain situations to have the results sorted. This adds a `:sort_by` option to that would be appropriate for the `ranked_in_list` call to sort by either score (`:score`) or rank (`:rank`) when returning results.
- Loading branch information...
Showing with 82 additions and 1 deletion.