diff --git a/src/applications/phriction/query/PhrictionDocumentQuery.php b/src/applications/phriction/query/PhrictionDocumentQuery.php index f05d67c4f3..702d936a2c 100644 --- a/src/applications/phriction/query/PhrictionDocumentQuery.php +++ b/src/applications/phriction/query/PhrictionDocumentQuery.php @@ -193,7 +193,11 @@ final class PhrictionDocumentQuery } private function shouldJoinContentTable() { - return $this->getOrderVector()->containsKey('updated'); + if ($this->getOrderVector()->containsKey('title')) { + return true; + } + + return false; } protected function buildWhereClauseParts(AphrontDatabaseConnection $conn) {