Break ties in face/tag

old-stable24
Varun Patil 2022-10-16 16:46:37 -07:00
parent 40f75b8b6f
commit 8a2631ffff
2 changed files with 2 additions and 0 deletions

View File

@ -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();

View File

@ -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();