Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

eslint: Fix unicorn/require-array-sort-compare.

Anders Kaseorg3d8508f23344
diff --git a/web/src/ui_init.js b/web/src/ui_init.js
index 42c7d8139d8..f49c7a2c76f 100644
--- a/web/src/ui_init.js
+++ b/web/src/ui_init.js
@@ -376,7 +376,7 @@ export function initialize_kitchen_sink_stuff() {
message_lists.current
.all_messages()
.map((message) => message.id)
- .toSorted(),
+ .toSorted((a, b) => a - b),
),
found_in_dom: $row_from_dom.length,
});