I use tag cloud of k2 tools module to display tags in my homepage... I'll be having about 100 tags in the near future, so i set a limit of 20 tags in module's properties. The module is showing the tags in alphabetical order... but i want it to show tags in reverse alphabetical order.
For example, i got tags with names like : "issue 1", "issue 2", .... , "issue 99", "issue 100".
No mater tag id, date the tag was added or number of articles/items per tag, I want the module to display tags in reverse alpha order : "issue 100", "issue 99", "issue 98"...
Can this be done with k2 tools modules? I tried to play around with a mod_k2_tools/tags.php override file with no luck, i have no idea what to change in this file to make it possible.
Any help would be greatly appreciated. Thanks for your time
Edit: ok... i feel like an idiot here... i must be getting very tired and missed the obvious solution. I used "array_reverse":
i replaced
<?php foreach ($tags as $tag): ?>
with
<?php foreach (array_reverse($tags) as $tag): ?>
Mods, feel free to erase that post/thread since the answer is pretty obvious and easy... or just let it be for future reference...
Of course, any comment for an alternative solution is always welcome.