- Timestamp:
- May 15, 2006, 11:22:43 PM (19 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/element_set_global.php
r1308 r1310 294 294 WHERE image_id IN ('.implode(',', $page['cat_elements_id']).') 295 295 GROUP BY tag_id 296 ORDER BY name ASC297 296 ;'; 298 297 $result = pwg_query($query); … … 303 302 array_push($tags, $row); 304 303 } 304 305 usort($tags, 'name_compare'); 305 306 306 307 $template->assign_vars( -
trunk/include/functions_html.inc.php
r1290 r1310 564 564 function name_compare($a, $b) 565 565 { 566 return strcmp( $a['name'], $b['name']);566 return strcmp(strtolower($a['name']), strtolower($b['name'])); 567 567 } 568 568 -
trunk/include/functions_tag.inc.php
r1135 r1310 92 92 { 93 93 $query = ' 94 SELECT id AS tag_id, name, url_name 94 SELECT id AS tag_id, 95 name, 96 url_name 95 97 FROM '.TAGS_TABLE.' 96 ORDER BY name97 98 ;'; 98 99 $result = pwg_query($query); … … 104 105 array_push($tags, $row); 105 106 } 107 108 usort($tags, 'name_compare'); 106 109 107 110 return $tags;
Note: See TracChangeset
for help on using the changeset viewer.