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:
parent
884ca37c39
commit
bcae3f1c47
|
@ -44,7 +44,7 @@ angular.module('sb.search').directive('searchResults',
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
*/
|
*/
|
||||||
$scope.sortField = 'id';
|
$scope.sortField = 'updated_at';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The direction to sort on.
|
* The direction to sort on.
|
||||||
|
|
Loading…
Reference in New Issue