Auto Tag Sorting

I’ve got a large group of resources/articles that use auto-tag to assign topics. There are about 80 articles and well over 100 tags. I have the tag cloud set to sort by tag in ASC order.


All is good except for a few tags at the end of the tag cloud that are out of order.

Any idea why this is happening?


Modx 3.0.4

Is it not the case that the tags are getting ordered like this:

A-Z a-z

So tags starting with lowercase follow after capitalised ones.

I’m not sure what you could do about this other than rename the lowercase tags.

Ah yes. You are exactly right.

Thank you!

1 Like

The tagLister snippet uses the PHP function ksort to sort the tags.
You could add flags as a second parameter for ksort to make the search case-insensitive.

1 Like