diff --git a/packages/insomnia-app/app/ui/components/templating/variable-editor.js b/packages/insomnia-app/app/ui/components/templating/variable-editor.js index c9ac0abb2..0bcad2f0f 100644 --- a/packages/insomnia-app/app/ui/components/templating/variable-editor.js +++ b/packages/insomnia-app/app/ui/components/templating/variable-editor.js @@ -66,7 +66,7 @@ class VariableEditor extends PureComponent { } const context = await this.props.handleGetRenderContext(); - const variables = context.keys; + const variables = context.keys.sort((a, b) => (a.name < b.name ? -1 : 1)); const variableSource = context.context.getKeysContext().keyContext[cleanedValue] || ''; // Hack to skip updating if we unmounted for some reason if (this._select) {