Forums / Developer / Sorting by same attribute in several classes

"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".

Sorting by same attribute in several classes

Author Message

Imobach González Sosa

Tuesday 18 May 2004 4:19:16 pm

Hi all,

I'm interested in sorting a couple of objects from different classes using a common attribute. For example:

class1 has attributes a1, a2 and x; and class2 has attributes a b1, b2 and x, too. Right?
What I wanna do is sorting objects using "x" attribute.

Any ideas?

Thank you in advance.

Rinze Cats

Wednesday 19 May 2004 12:36:25 am

Hi,

maybe you can fetch your objects using an attribute filter on attribute x. Sort commands can be included in the fetch.

greetz
rinze