From 593f7d55de45837d867d323b7cc951116e5fef15 Mon Sep 17 00:00:00 2001
From: shish <shish@7f39781d-f577-437e-ae19-be835c7a54ca>
Date: Wed, 23 May 2007 03:51:20 +0000
Subject: [PATCH] ordered tags (and use the wrapped execute function)

git-svn-id: file:///home/shish/svn/shimmie2/trunk@127 7f39781d-f577-437e-ae19-be835c7a54ca
---
 core/image.class.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/image.class.php b/core/image.class.php
index 2f5b6fb6..2ea62bc4 100644
--- a/core/image.class.php
+++ b/core/image.class.php
@@ -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();