-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix sorting events on the client (#47)
(k1 < k2) should have been (k1 < k2 ? -1 : 1), but Array.sort() has been stable for a long time. We don't compare keys on the server side, so just remove this on the client side as well. Also, change tiebreak in the leaderboard as suggested in[1]. Instead of comparing user IDs, which are arbitrary, compare the times that they found the last set. Fixes #46 [1] ekzhang/setwithfriends#153
- Loading branch information
Showing
2 changed files
with
21 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters