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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.