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.
This commit is contained in:
Hemanth V. Alluri 2019-09-24 12:42:45 +05:30 committed by Tim Abbott
parent 98a33c0fda
commit 635b96dbc1
1 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,7 @@ function load_fixture_options(integration_name) {
the fixture options for the fixture_names dropdown and also set the fixture options for the fixture_names dropdown and also set
the fixture body to the first fixture by default. */ the fixture body to the first fixture by default. */
var fixtures_options_dropdown = $("#fixture_name")[0]; 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) { fixtures_names.forEach(function (fixture_name) {
var new_dropdown_option = document.createElement("option"); var new_dropdown_option = document.createElement("option");