Break ties in face/tag
parent
40f75b8b6f
commit
8a2631ffff
|
@ -57,6 +57,7 @@ trait TimelineQueryFaces {
|
|||
|
||||
// ORDER by number of faces in cluster
|
||||
$query->orderBy('count', 'DESC');
|
||||
$query->addOrderBy('rfc.id'); // tie-breaker
|
||||
|
||||
// FETCH all faces
|
||||
$faces = $query->executeQuery()->fetchAll();
|
||||
|
|
|
@ -56,6 +56,7 @@ trait TimelineQueryTags {
|
|||
// GROUP and ORDER by tag name
|
||||
$query->groupBy('st.name');
|
||||
$query->orderBy('st.name', 'ASC');
|
||||
$query->addOrderBy('st.id'); // tie-breaker
|
||||
|
||||
// FETCH all tags
|
||||
$tags = $query->executeQuery()->fetchAll();
|
||||
|
|
Loading…
Reference in New Issue