faces: place unnamed clusters at the end (fix #76)

old-stable24
Varun Patil 2022-10-18 08:02:56 -07:00
parent b2eea7cf99
commit c5d3270ccf
1 changed files with 2 additions and 1 deletions

View File

@ -56,7 +56,8 @@ trait TimelineQueryFaces {
$query->groupBy('rfc.id'); $query->groupBy('rfc.id');
// ORDER by number of faces in cluster // ORDER by number of faces in cluster
$query->orderBy('count', 'DESC'); $query->orderBy($query->createFunction("rfc.title <> ''"), 'DESC');
$query->addOrderBy('count', 'DESC');
$query->addOrderBy('rfc.id'); // tie-breaker $query->addOrderBy('rfc.id'); // tie-breaker
// FETCH all faces // FETCH all faces