how to sort arrays of objects?

Author Message

Kai Duebbert

Wednesday 11 February 2004 6:22:31 pm

Hi,

I want to sort arrays by the object names. The problem is that I'm not getting them with a fetch which would sort them properly, but they are already existsing. The array is $node.object.can_create_class_list. It makes much more sense sorting it alphabetically.

Does anyone know a good solution? (A template operator would be best, but I don't know one that does this.)

Thanks,
Kai

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 31 2025 01:25:34
Script start
Timing: Jan 31 2025 01:25:34
Module start 'layout'
Timing: Jan 31 2025 01:25:34
Module start 'content'
Timing: Jan 31 2025 01:25:34
Module end 'content'
Timing: Jan 31 2025 01:25:34
Script end

Main resources:

Total runtime0.0245 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0048 589.2656151.2109
Module start 'layout' 0.00480.0032 740.4766220.6875
Module start 'content' 0.00800.0149 961.1641993.6797
Module end 'content' 0.02290.0015 1,954.843829.9922
Script end 0.0244  1,984.8359 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002510.1236140.0002
Check MTime0.00104.0518140.0001
Mysql Total
Database connection0.00114.326710.0011
Mysqli_queries0.00197.830630.0006
Looping result0.00000.037010.0000
Template Total0.00114.310.0011
Template load0.00083.300110.0008
Template processing0.00020.994410.0002
Override
Cache load0.00052.109710.0005
General
dbfile0.002811.280980.0003
String conversion0.00000.020540.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs