Index: gm/rebaseline_server/static/loader.js |
=================================================================== |
--- gm/rebaseline_server/static/loader.js (revision 12171) |
+++ gm/rebaseline_server/static/loader.js (working copy) |
@@ -58,7 +58,7 @@ |
$scope.header = data.header; |
$scope.categories = data.categories; |
$scope.testData = data.testData; |
- $scope.sortColumn = 'test'; |
+ $scope.sortColumn = 'weightedDiffMeasure'; |
$scope.showTodos = false; |
$scope.showSubmitAdvancedSettings = false; |
@@ -242,6 +242,13 @@ |
// array copies? (For better performance.) |
if ($scope.viewingTab == $scope.defaultTab) { |
+ |
+ // TODO(epoger): Until we allow the user to reverse sort order, |
+ // there are certain columns we want to sort in a different order. |
+ var doReverse = ( |
+ ($scope.sortColumn == 'percentDifferingPixels') || |
+ ($scope.sortColumn == 'weightedDiffMeasure')); |
+ |
$scope.filteredTestData = |
$filter("orderBy")( |
$filter("removeHiddenItems")( |
@@ -252,7 +259,7 @@ |
$scope.categoryValueMatch.test, |
$scope.viewingTab |
), |
- $scope.sortColumn); |
+ $scope.sortColumn, doReverse); |
$scope.limitedTestData = $filter("limitTo")( |
$scope.filteredTestData, $scope.displayLimit); |
} else { |