Sort by related objects count or subitems count

Author Message

Jan Komárek

Thursday 18 December 2008 4:16:29 am

I need to sort objects by count of related objects. E.g. I would like sort articles by count of comments on them. I did not find no way, how to do that. But i dont belive, that my customer is first who want to do somethink like that.

Thank for replies.

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

Main resources:

Total runtime0.8139 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 589.4766152.6406
Module start 'layout' 0.00510.0030 742.117239.4922
Module start 'content' 0.00810.8031 781.6094431.7109
Module end 'content' 0.81120.0026 1,213.32038.1250
Script end 0.8138  1,221.4453 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.3770160.0002
Check MTime0.00140.1672160.0001
Mysql Total
Database connection0.00070.084410.0007
Mysqli_queries0.762693.7000460.0166
Looping result0.00060.0781440.0000
Template Total0.776195.420.3880
Template load0.00180.216420.0009
Template processing0.774395.136320.3872
Template load and register function0.00020.030110.0002
states
state_id_array0.00120.142610.0012
state_identifier_array0.00160.196320.0008
Override
Cache load0.00130.159560.0002
Sytem overhead
Fetch class attribute can translate value0.00090.113210.0009
Fetch class attribute name0.00080.098320.0004
XML
Image XML parsing0.01011.244310.0101
class_abstraction
Instantiating content class attribute0.00000.000420.0000
General
dbfile0.01051.2929150.0007
String conversion0.00000.000940.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
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 5
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs