ordered tags (and use the wrapped execute function)

git-svn-id: file:///home/shish/svn/shimmie2/trunk@127 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
shish 2007-05-23 03:51:20 +00:00
parent e6668f53d7
commit 593f7d55de

View file

@ -75,7 +75,7 @@ class Image {
if(!isset($this->tag_array)) {
global $database;
$this->tag_array = Array();
$row = $database->db->Execute("SELECT * FROM tags WHERE image_id=?", array($this->id));
$row = $database->Execute("SELECT * FROM tags WHERE image_id=? ORDER BY tag", array($this->id));
while(!$row->EOF) {
$this->tag_array[] = $row->fields['tag'];
$row->MoveNext();