@@ -119,7 +119,7 @@ sub db_get_document_object { | |||
$q = sqlquery($dbh, " | |||
SELECT tags.tag AS tag | |||
FROM documents_tags LEFT JOIN tags ON documents_tags.tagId = tags.id | |||
WHERE documentId = ? SORT BY tag", $id); | |||
WHERE documentId = ? ORDER BY tag", $id); | |||
while(my ($tag) = $q->fetchrow_array()) { push @tags, $tag; } | |||
my %lang; |