Forums / Developer / how to sort arrays of objects?

how to sort arrays of objects?

Author Message

Kai Duebbert

Wednesday 11 February 2004 6:22:31 pm

Hi,

I want to sort arrays by the object names. The problem is that I'm not getting them with a fetch which would sort them properly, but they are already existsing. The array is $node.object.can_create_class_list. It makes much more sense sorting it alphabetically.

Does anyone know a good solution? (A template operator would be best, but I don't know one that does this.)

Thanks,
Kai