Skip to content

Commit 2b5cdd0

Browse files
committed
Add order by tag string ascending
1 parent 55c7099 commit 2b5cdd0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Libraries/Tag/Tag.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ public static function allocateAll(int|Types $reference_type, int $reference_id)
7272
`tag_string`
7373
FROM `tags` WHERE
7474
`reference_id` = :refid AND
75-
`reference_type` = :reftype;
75+
`reference_type` = :reftype
76+
ORDER BY `tag_string` ASC;
7677
');
7778
if (!$q || !$q->execute($p)) return null;
7879
$rows = [];

0 commit comments

Comments
 (0)