How to sort?

Author Message

bill hung

Saturday 16 April 2005 12:23:00 am

Dear all,
how to sort a class according to the modified date of it's sub-class? e.g.

I build 3 class for my forum--"forum", "topic" and "reply", I hope sort <b>topic</b> according to the latest modified date of <b>reply</b>.

thanks.

Eivind Marienborg

Saturday 16 April 2005 12:32:33 am

sort_by, array( 'modified_subnode', false() )

I think this is what you're looking for :)

bill hung

Sunday 17 April 2005 7:52:58 pm

Thanks very much!

the problem was solved

best regards!

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 16:23:20
Script start
Timing: Jan 18 2025 16:23:20
Module start 'layout'
Timing: Jan 18 2025 16:23:20
Module start 'content'
Timing: Jan 18 2025 16:23:21
Module end 'content'
Timing: Jan 18 2025 16:23:21
Script end

Main resources:

Total runtime0.6554 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0038 587.7891152.6094
Module start 'layout' 0.00380.0027 740.398439.4063
Module start 'content' 0.00650.6474 779.8047499.4609
Module end 'content' 0.65390.0015 1,279.26568.2031
Script end 0.6554  1,287.4688 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00400.6179160.0003
Check MTime0.00150.2224160.0001
Mysql Total
Database connection0.00050.075110.0005
Mysqli_queries0.609592.9962570.0107
Looping result0.00050.0691550.0000
Template Total0.624995.320.3124
Template load0.00420.646520.0021
Template processing0.620694.683420.3103
Template load and register function0.00010.018410.0001
states
state_id_array0.00090.139610.0009
state_identifier_array0.00110.172220.0006
Override
Cache load0.00340.5259150.0002
Sytem overhead
Fetch class attribute can translate value0.00050.071320.0002
Fetch class attribute name0.00090.143440.0002
XML
Image XML parsing0.00070.103920.0003
class_abstraction
Instantiating content class attribute0.00000.001040.0000
General
dbfile0.00070.1143160.0000
String conversion0.00000.001540.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 11
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs