Ich habe nun die Zeilen
PHP-Code:
// Sorts a list of tags by their count ascending.
/**
function tag_asort($tag1, $tag2)
{
if($tag1['tag_count'] == $tag2['tag_count'])
{
return 0;
}
return ($tag1['tag_count'] < $tag2['tag_count']) ? -1 : 1;
}
*/
/****************************************************************************************/
// Sorts a list of tags alphabetically by tag_name
/**
function tag_alphasort($tag1, $tag2)
{
return strnatcasecmp($tag1['tag_name'], $tag2['tag_name']);
}
*/
auskommentiert und die Sache scheint zulaufen.
Kennt jemand eine elegantere Variante?
Lesezeichen