From 9c5436c648bf300bd20e44ca24049a3fac3cca17 Mon Sep 17 00:00:00 2001 From: bergquist Date: Tue, 13 Sep 2016 07:39:30 +0200 Subject: [PATCH] feat(templating): set default sort order --- public/app/features/templating/editorCtrl.js | 1 + 1 file changed, 1 insertion(+) diff --git a/public/app/features/templating/editorCtrl.js b/public/app/features/templating/editorCtrl.js index 5c923271278..95f3bd2e9dd 100644 --- a/public/app/features/templating/editorCtrl.js +++ b/public/app/features/templating/editorCtrl.js @@ -123,6 +123,7 @@ function (angular, _) { $scope.currentIsNew = false; $scope.mode = 'edit'; + $scope.current.sort = $scope.current.sort || replacementDefaults.sort; if ($scope.current.datasource === void 0) { $scope.current.datasource = null; $scope.current.type = 'query';