Forums / Developer / how to sort arrays of objects?

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

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