Closed (duplicate)
Project:
Content Construction Kit (CCK)
Version:
4.7.x-1.x-dev
Component:
number.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Sep 2006 at 16:09 UTC
Updated:
28 Sep 2006 at 18:03 UTC
Comments
Comment #1
merlinofchaos commentedDefinitely a CCK issue if there's any real issue at all.
Using a 'text field' you're going to get a text based sort, which means that 100 comes before 99. You need to use an actual integer field to get a proper integer sort unless you store your numbers with leading digits, and I'm not sure CCK does that.
Comment #2
asimmonds commentedI am unable to reproduce this issue with a cck type made up of:
title: textfield
sortme: integerfield
Created a page view filtered on this cck type, with sort enabled on the sortme column, and it works as expected with ascending and descending sorting.
@amccann: The url you gave has restricted access, please post a public url that shows the problem that you are experiencing.
Comment #3
yched commentedamccann, can you confirm ?
Comment #4
yched commentedComment #5
Robardi56 commentedIndeed, sorting numbers doesn't work properly when field is a text field, but works ok when field is set to integer or decimal.
Problem with number field is that if field is left empty, it forces a value of 0 to be displayed.
Any way to avoid this ?
Cordially,
Brakkar
Comment #6
yched commentedOK, then this is actuially a duplicate of http://drupal.org/node/82439