pokemon-showdown/server/chat-plugins
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
..
announcements.ts Announcements: Fix /announcement htmlcreate (#8194) 2021-04-13 14:00:48 -07:00
battlesearch.ts Refactor everything to use Utils.sortBy (#8220) 2021-04-23 22:41:00 -07:00
blackjack.ts Lib: Add an index file for all exports (#7972) 2021-01-31 18:00:19 -08:00
calculator.ts Fix crash that prevents the server from booting (#7983) 2021-02-02 11:05:14 -08:00
chat-monitor.ts Chat-monitor: Fix /filter help 2021-04-21 08:30:19 -05:00
chatlog.ts Refactor everything to use Utils.sortBy (#8220) 2021-04-23 22:41:00 -07:00
COMMANDS.md Chat: Refactor CommandContext and PageContext to use ErrorMessage more (#7234) 2020-09-06 00:15:16 -07:00
daily-spotlight.ts Chat: Properly remove old data for some onRename handlers 2021-04-01 00:24:54 -05:00
datasearch.ts Refactor everything to use Utils.sortBy (#8220) 2021-04-23 22:41:00 -07:00
hangman.ts Hangman: Fix caps sensitivity in /hangman untag 2021-04-05 11:25:28 -05:00
helptickets.ts Refactor everything to use Utils.sortBy (#8220) 2021-04-23 22:41:00 -07:00
hosts.ts Refactor everything to use Utils.sortBy (#8220) 2021-04-23 22:41:00 -07:00
jeopardy.ts Lib: Add an index file for all exports (#7972) 2021-01-31 18:00:19 -08:00
lottery.ts Lib: Add an index file for all exports (#7972) 2021-01-31 18:00:19 -08:00
mafia.ts Refactor everything to use Utils.sortBy (#8220) 2021-04-23 22:41:00 -07:00
modlog-viewer.ts Lib: Add an index file for all exports (#7972) 2021-01-31 18:00:19 -08:00
net-filters.ts CommandContext#globalModlog: Make user optional 2021-04-19 08:53:17 -07:00
othermetas.ts Update Dex API (#8181) 2021-04-08 03:00:37 -07:00
poll.ts Polls: Increase max question limit 2021-04-15 12:11:33 -05:00
quotes.ts Chat: Properly remove old data for some onRename handlers 2021-04-01 00:24:54 -05:00
random-battles.ts Update Battle Factory tests and command 2021-04-16 17:35:26 -06:00
repeats.ts Repeats: Ensure repeat IDs aren't empty strings 2021-04-03 18:04:52 -07:00
responder.ts Autoresponder: Correctly format newlines in FAQs and improve style 2021-04-08 10:04:17 -05:00
rock-paper-scissors.ts RPS: Fix bugs with matchups and lower round cap 2021-04-12 10:40:31 -05:00
room-events.ts Refactor everything to use Utils.sortBy (#8220) 2021-04-23 22:41:00 -07:00
room-faqs.ts Refactor everything to use Utils.sortBy (#8220) 2021-04-23 22:41:00 -07:00
scavenger-games.ts Refactor everything to use Utils.sortBy (#8220) 2021-04-23 22:41:00 -07:00
scavengers.ts Refactor everything to use Utils.sortBy (#8220) 2021-04-23 22:41:00 -07:00
suspect-tests.ts Update Dex API (#8181) 2021-04-08 03:00:37 -07:00
tcgtabletop.ts Lib: Add an index file for all exports (#7972) 2021-01-31 18:00:19 -08:00
the-studio.ts Use /msgroom in more places (#8042) 2021-02-16 20:10:05 -08:00
thecafe.ts Update Dex API (#8181) 2021-04-08 03:00:37 -07:00
thing-of-the-day.ts TOTD: Fix keys[0] not being the nom 2021-04-06 11:58:02 -05:00
trivia.ts Refactor everything to use Utils.sortBy (#8220) 2021-04-23 22:41:00 -07:00
uno.ts Refactor everything to use Utils.sortBy (#8220) 2021-04-23 22:41:00 -07:00
usersearch.ts Usersearch: Make page forcerenames log to staff (#8035) 2021-02-15 16:11:25 -05:00
wifi.ts Add more support for custom punishments (#8215) 2021-04-23 22:40:31 -07:00
youtube.ts Refactor everything to use Utils.sortBy (#8220) 2021-04-23 22:41:00 -07:00