alphabetic tag search order
authorAndreas Unterkircher <unki@netshadow.at>
Wed, 20 Jun 2007 04:31:48 +0000 (04:31 +0000)
committerAndreas Unterkircher <unki@netshadow.at>
Wed, 20 Jun 2007 04:31:48 +0000 (04:31 +0000)
git-svn-id: file:///var/lib/svn/phpfspot/trunk@115 fa6a889d-dae6-447d-9e79-4ba9a3039384

phpfspot.class.php

index 9c426a30ce20f678d9daa95eb2c141305d491faa..eb8a8e66b32b18cd60062450d9711fe836c6cbdb 100644 (file)
@@ -154,8 +154,10 @@ class PHPFSPOT {
       $result = $this->db->db_query("
          SELECT tag_id as id, count(tag_id) as quantity
          FROM photo_tags
       $result = $this->db->db_query("
          SELECT tag_id as id, count(tag_id) as quantity
          FROM photo_tags
+         INNER JOIN tags t
+            ON t.id = tag_id
          GROUP BY tag_id
          GROUP BY tag_id
-         ORDER BY tag_id ASC
+         ORDER BY t.name ASC
       ");
 
       $tags = Array();
       ");
 
       $tags = Array();