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
This commit is contained in:
Ivoline Ngong 2019-02-22 18:36:26 +03:00
parent 884ca37c39
commit bcae3f1c47
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ angular.module('sb.search').directive('searchResults',
*
* @type {string}
*/
$scope.sortField = 'id';
$scope.sortField = 'updated_at';
/**
* The direction to sort on.