Explicitly sort tags

cache
Varun Patil 2022-10-07 11:06:16 -07:00
parent 5f3323529b
commit 9dc4ae20cb
1 changed files with 2 additions and 1 deletions

View File

@ -53,8 +53,9 @@ trait TimelineQueryTags {
// WHERE these photos are in the user's requested folder recursively // WHERE these photos are in the user's requested folder recursively
$query->innerJoin('m', 'filecache', 'f', $this->getFilecacheJoinQuery($query, $folder, true, false)); $query->innerJoin('m', 'filecache', 'f', $this->getFilecacheJoinQuery($query, $folder, true, false));
// GROUP by tag name // GROUP and ORDER by tag name
$query->groupBy('st.name'); $query->groupBy('st.name');
$query->orderBy('st.name', 'ASC');
// FETCH all tags // FETCH all tags
$tags = $query->executeQuery()->fetchAll(); $tags = $query->executeQuery()->fetchAll();