From bcae3f1c47b36ff84b77d0a9b6f445fd795422f6 Mon Sep 17 00:00:00 2001 From: Ivoline Ngong Date: Fri, 22 Feb 2019 18:36:26 +0300 Subject: [PATCH] Sort search results by updated_at by default Most recently updated projects should be at top of stories list, therefore sorting is done by updated_at instead of id. Task: 2620 Change-Id: I8c19caa50725fdf0625b38276a2115b657a39820 --- src/app/search/directive/search_results.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/search/directive/search_results.js b/src/app/search/directive/search_results.js index b6e41614..b2df3875 100644 --- a/src/app/search/directive/search_results.js +++ b/src/app/search/directive/search_results.js @@ -44,7 +44,7 @@ angular.module('sb.search').directive('searchResults', * * @type {string} */ - $scope.sortField = 'id'; + $scope.sortField = 'updated_at'; /** * The direction to sort on.