Strange behavior on ordering collection


I get an annoying problem. I set a field (price with float type [1.16]) in header.
In php code i make :

All prices are not sort in “asc” direction. I got 2.44 before 1.497 :frowning:
(it’s seems to work well with desc…)

PHP command gettype give double for header.price type. Good for sorting, but does not work.

Any idea to workaround this strange behavior ?

Thanks for help,



Please create an issue, and i’ll look at it on GitHub:


Thanks for your answer.

Problem solved with PHP FLAG :slight_smile: =>

Perhaps you could update the doc to explicit this option ? What do you think about it ?

Thanks for all. Really enjoy GRAV :slight_smile: