This question is locked. New answers and comments are not allowed.
Hi!
I'm trying to sorting a "price" field (it's a Number field), but when I do:
query.order('price');
It considere the 'price' as string, so, instead of get this: 10, 20, 100, 200 .... I get 10, 100, 20, 200.
I think it's because it considers the numbers as strings, then it looks at the first "character" and put back "10" and "100" first, and "20" and "200" after...
Is there a way to make the order() function orders as numbers not as strings?
thank you and sorry for my english....