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.

channel_folders: Sort get_channel_folders by order.

Tim Abbott40118c9a7ca6
diff --git a/web/src/channel_folders.ts b/web/src/channel_folders.ts
index 8af88650882..0ef5e0993e6 100644
--- a/web/src/channel_folders.ts
+++ b/web/src/channel_folders.ts
@@ -42,7 +42,7 @@ export function get_channel_folders(include_archived = false): ChannelFolder[] {
}
return true;
- });
+ }).sort((folder_a, folder_b) => folder_a.order - folder_b.order);
}
/* TODO/channel-folders: Remove when tests are restored */