sort with decimal
dropchew - October 27, 2009 - 02:47
| Project: | Views Custom Field |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | kratib |
| Status: | active |
Jump to:
Description
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!

#1
What 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?