Closed (cannot reproduce)
Project:
Views Custom Field
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
27 Oct 2009 at 02:47 UTC
Updated:
7 Feb 2011 at 20:01 UTC
Hi,
I have tried both numeric and natural to sort fields through a views table display and notice that numerics with decimals are not sorted properly. For eg, 2.4 and 2 are equal in the sorting context. Only alphanumeric sorts decimal correctly from the tests I have done.
But am I using the correct sort for decimal numbers?
Thanks!
Comments
Comment #1
infojunkieWhat do you mean by "2.4 and 2 are equal in the sorting context" ? Do they not appear in the right order when you sort the table by the PHP Code field? Can you share your code snippet that produces those values?
Comment #2
jeffschulerComment #3
weka commentedI just tested this and am not able to reproduce the problem.
Customfield: PHP code is set to Sortable > Numeric
Default sort order: Descending
Row with value 5.00001 displays correctly above row with value of 5.
Feel free to reopen this issue if you still experiencing the problem and provide more details so others can try to replicate. See the How to make an issue report page for guidelines.