We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9015a74 commit 12bed2bCopy full SHA for 12bed2b
views/default/resources/questions/view.php
@@ -63,11 +63,11 @@ function (QueryBuilder $qb, $main_alias) {
63
->where($qb->compare('entity_guid', '=', "{$main_alias}.guid"))
64
->andWhere($qb->compare('name', '=', 'likes', ELGG_VALUE_STRING));
65
66
- return "({$sub->getSQL()}) as likes_count";
+ return "({$sub->getSQL()}) as number_of_likes";
67
},
68
];
69
$options['order_by'] = [
70
- new OrderByClause('likes_count', 'DESC'),
+ new OrderByClause('number_of_likes', 'DESC'),
71
new OrderByClause('e.time_created', 'ASC'),
72
73
}
0 commit comments