drafts: Fix order of group pm recipients in draft overlay.

Earlier in drafts overlay, the order of pm recipients for the draft
was sorted differently to that of the pm group title.

This commit fixes the behaviour by sorting the drafts pm recipients
using `make_strcmp`.

Fixes part of zulip#27375.

Co-authored-by: richardshaju <richardshaju66@gmail.com>
This commit is contained in:
Pratik Chanda
2024-05-22 18:26:57 +05:30
committed by Tim Abbott
parent eeae434625
commit c180b25a68
3 changed files with 13 additions and 12 deletions

View File

@@ -131,7 +131,7 @@ async function test_previously_created_drafts_rendered(page: Page): Promise<void
page,
"#drafts_table .overlay-message-row .message_header_private_message .stream_label",
),
"You and King Hamlet, Cordelia, Lear's daughter",
"You and Cordelia, Lear's daughter, King Hamlet",
);
assert.strictEqual(
await common.get_text_from_selector(