sorting arrays

Author Message

Marko Žmak

Thursday 18 August 2005 1:33:55 pm

Is there a way to sort arrays in eZ. I don't want to use the sort functionallity of the fetch functin but sort an array in the template. Is there an operator for that?

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Daniel Guerrier

Thursday 18 August 2005 5:20:20 pm

The quick answer to that is no.
Not sure if there is a way around it, the big dogs will have to answer that.

Marko Žmak

Friday 19 August 2005 6:29:02 am

Are there some plans to implement an operator like this? There's an example on the forum how to make your own operator for this, but I would like to know if there will be a generic eZ sollution.

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

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 19 2025 04:36:12
Script start
Timing: Jan 19 2025 04:36:12
Module start 'layout'
Timing: Jan 19 2025 04:36:12
Module start 'content'
Timing: Jan 19 2025 04:36:14
Module end 'content'
Timing: Jan 19 2025 04:36:14
Script end

Main resources:

Total runtime1.6353 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.0053 593.4141152.6094
Module start 'layout' 0.00530.0032 746.023439.4297
Module start 'content' 0.00851.6254 785.4531533.9922
Module end 'content' 1.63390.0014 1,319.44538.1953
Script end 1.6352  1,327.6406 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.1930160.0002
Check MTime0.00130.0771160.0001
Mysql Total
Database connection0.00090.053010.0009
Mysqli_queries1.585696.9597570.0278
Looping result0.00080.0507550.0000
Template Total1.599997.820.7999
Template load0.00200.121020.0010
Template processing1.597997.715320.7990
Template load and register function0.00030.021210.0003
states
state_id_array0.00120.075510.0012
state_identifier_array0.00190.115520.0009
Override
Cache load0.00170.1010110.0002
Sytem overhead
Fetch class attribute can translate value0.00100.058720.0005
Fetch class attribute name0.00140.085040.0003
XML
Image XML parsing0.00090.054820.0004
class_abstraction
Instantiating content class attribute0.00000.000750.0000
General
dbfile0.00090.0558180.0001
String conversion0.00000.000640.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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.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/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: 11
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs