mirror of https://github.com/zulip/zulip.git
move messages: Use case-insensitive sorting in stream selection.
Previously, the options in the stream selection dropdown were sorted in a case-sensitive fashion, which felt a bit harder to use than just sorting alphabetically irrespective of case. Fixes: #23283
This commit is contained in:
parent
f554af0d1c
commit
a516a13220
|
@ -421,7 +421,16 @@ export function get_available_streams_for_moving_messages(current_stream_id) {
|
|||
.map((stream) => ({
|
||||
name: stream.name,
|
||||
value: stream.stream_id.toString(),
|
||||
}));
|
||||
}))
|
||||
.sort((a, b) => {
|
||||
if (a.name.toLowerCase() < b.name.toLowerCase()) {
|
||||
return -1;
|
||||
}
|
||||
if (a.name.toLowerCase() > b.name.toLowerCase()) {
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
});
|
||||
}
|
||||
|
||||
function edit_message($row, raw_content) {
|
||||
|
|
Loading…
Reference in New Issue