From 635b96dbc12e69d1fc3c66e02722efc2b1379ece Mon Sep 17 00:00:00 2001 From: "Hemanth V. Alluri" Date: Tue, 24 Sep 2019 12:42:45 +0530 Subject: [PATCH] devtools: Order the fixtures dropdown menu alphabetically in the IDP. This is a simple and small commit which will alphabetically order the entries of the fixtures dropdown menu in the "integrations developer panel" devtool. --- static/js/portico/integrations_dev_panel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/portico/integrations_dev_panel.js b/static/js/portico/integrations_dev_panel.js index 285c61a781..4cf4a8effc 100644 --- a/static/js/portico/integrations_dev_panel.js +++ b/static/js/portico/integrations_dev_panel.js @@ -127,7 +127,7 @@ function load_fixture_options(integration_name) { the fixture options for the fixture_names dropdown and also set the fixture body to the first fixture by default. */ var fixtures_options_dropdown = $("#fixture_name")[0]; - var fixtures_names = Object.keys(loaded_fixtures[integration_name]); + var fixtures_names = Object.keys(loaded_fixtures[integration_name]).sort(); fixtures_names.forEach(function (fixture_name) { var new_dropdown_option = document.createElement("option");