Problem with custom sorting - possible bug?

Author Message

steve walker

Tuesday 26 October 2004 9:17:57 am

Hi there,

I have a strange issue with a custom list sorting - could be a bug or perhaps I've hammed something together incorrectly...?

I have a text line field in my class called 'salary sorter' with an id of 305.

In my fetch I have the line

sort_by, array(array('attribute',false(),305))

which gets the resulting list to sort by this attribute.

All works fine for numbers from 1-99 - as you'd expect, higher numbers appear at the top of the list etc - but as soon as you get to 100 or over, these get placed at the bottom of the list under the lower sort values...

If this isnt a bug I guess it might the fact that I've used a text line instead of a numerically orientated datatype, but its just plain integers being used to sort the list much like the 'priority' sort type.

Anyone got any ideas?

Many thanks, Steve.

http://www.oneworldmarket.co.uk

steve walker

Monday 01 November 2004 4:26:30 am

Hi.

Given no reponses on this I guess I should report it as bug?

Steve.

http://www.oneworldmarket.co.uk

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

Main resources:

Total runtime1.1605 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0059 589.2891152.6406
Module start 'layout' 0.00590.0030 741.929739.4766
Module start 'content' 0.00901.1501 781.4063452.4766
Module end 'content' 1.15910.0014 1,233.88288.1250
Script end 1.1605  1,242.0078 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.2732160.0002
Check MTime0.00140.1179160.0001
Mysql Total
Database connection0.00070.059210.0007
Mysqli_queries1.119596.4677520.0215
Looping result0.00040.0386500.0000
Template Total1.130197.420.5650
Template load0.00200.176020.0010
Template processing1.128097.199320.5640
Template load and register function0.00020.017310.0002
states
state_id_array0.00100.089310.0010
state_identifier_array0.00100.088120.0005
Override
Cache load0.00160.1386170.0001
Sytem overhead
Fetch class attribute can translate value0.00050.045310.0005
Fetch class attribute name0.00110.096120.0006
XML
Image XML parsing0.00010.008410.0001
class_abstraction
Instantiating content class attribute0.00000.000620.0000
General
dbfile0.00070.0583100.0001
String conversion0.00000.000840.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
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/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: 8
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs