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.

eZ debug

Timing: Jan 18 2025 22:14:13
Script start
Timing: Jan 18 2025 22:14:13
Module start 'layout'
Timing: Jan 18 2025 22:14:13
Module start 'content'
Timing: Jan 18 2025 22:14:14
Module end 'content'
Timing: Jan 18 2025 22:14:14
Script end

Main resources:

Total runtime0.6328 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0067 588.0469152.6406
Module start 'layout' 0.00670.0032 740.687539.4766
Module start 'content' 0.00990.6215 780.1641457.9688
Module end 'content' 0.63140.0014 1,238.13288.1250
Script end 0.6327  1,246.2578 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.5770160.0002
Check MTime0.00140.2200160.0001
Mysql Total
Database connection0.00100.162610.0010
Mysqli_queries0.589693.1740540.0109
Looping result0.00120.1963520.0000
Template Total0.599194.720.2996
Template load0.00230.366020.0012
Template processing0.596894.316320.2984
Template load and register function0.00020.030010.0002
states
state_id_array0.00160.256810.0016
state_identifier_array0.00090.149520.0005
Override
Cache load0.00180.2766140.0001
Sytem overhead
Fetch class attribute can translate value0.00100.154320.0005
Fetch class attribute name0.00240.386520.0012
XML
Image XML parsing0.00020.034020.0001
class_abstraction
Instantiating content class attribute0.00000.000920.0000
General
dbfile0.00070.1111100.0001
String conversion0.00000.001440.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 10
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs