pokemon-showdown/test/server
Guangcong Luo 486f292904
Refactor everything to use Utils.sortBy (#8220)
A few uses of `array.sort()` have been left alone:

- sorting in `data/` because they aren't supposed to import anything

- `set-importer` because I still have no clue what that's for and what
  dependencies it is/isn't allowed to have

- `sort()` with no arguments used as a lexical sort (at which point
  `sortBy` offers no benefits)

All other cases have been replaced with `Utils.sortBy`, which should
be a massive increase in readability.

Sort orders should be much more readable now, without needing to puzzle
through sign issues. The order is always low-to-high, A-to-Z,
true-to-false.
2021-04-23 22:41:00 -07:00
..
chat-commands Tests: Refactor users-utils 2021-01-09 22:33:32 -08:00
chat-plugins Trivia: Implement a /trivia unrankednew command 2021-03-20 12:30:46 -07:00
chat.js Chat: Implement Discord spoilers (#7948) 2021-04-09 01:39:47 -07:00
ip-tools.js Refactor everything to use Utils.sortBy (#8220) 2021-04-23 22:41:00 -07:00
ladders.js Implement free-for-all 2021-04-01 04:44:16 -07:00
modlog.js Modlog: Make tests work without SQLite 2020-11-05 22:40:53 -08:00
room-battle.js Implement free-for-all 2021-04-01 04:44:16 -07:00
rooms.js Add room sections (#8205) 2021-04-23 22:39:56 -07:00
sockets.js Stop using assert.strict.strictEqual (#7515) 2020-10-14 01:19:03 -07:00
users.js Tests: Refactor users-utils 2021-01-09 22:33:32 -08:00