faces: place unnamed clusters at the end (fix #76)
parent
b2eea7cf99
commit
c5d3270ccf
|
@ -56,7 +56,8 @@ trait TimelineQueryFaces {
|
|||
$query->groupBy('rfc.id');
|
||||
|
||||
// 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
|
||||
|
||||
// FETCH all faces
|
||||
|
|
Loading…
Reference in New Issue