Forums / Developer / How to order an array?

"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 order an array?

Author Message

luis muñoz

Monday 09 July 2007 4:57:18 am

The problen is:

When i concat the result of two fetch or create an array after several fetch the resulting array is obviously ordered in the same way i concated the elements. How can i reoder the array? I don't need ordering by any special attribute, default order is enought.

So, is there any operator to order the elements in an array? I've been searching in the docs but couldn't find one.

Thanks,
Luis Muñoz

Renaud Patrick

Monday 09 July 2007 6:44:51 am

Hello Luis,

I guess you'll find the answer you're looking for there : http://ez.no/Exponential/documentation/development/kernel/custom_template_operators