Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
custom_profile_fields: Sort array numerically.
Ganesh Paware99314066085
diff --git a/web/src/settings_profile_fields.js b/web/src/settings_profile_fields.jsindex 26583f16ac5..35c3bd2791c 100644--- a/web/src/settings_profile_fields.js+++ b/web/src/settings_profile_fields.js@@ -181,7 +181,7 @@ function get_value_for_new_option(container) {$choice_rows.each(function () {existing_option_values.push(Number.parseInt($(this).attr("data-value"), 10));});- existing_option_values.sort();+ existing_option_values.sort((a, b) => a - b);return existing_option_values.at(-1) + 1;}