Strange behavior on ordering collection

Hello,

I get an annoying problem. I set a field (price with float type [1.16]) in header.
In php code i make :
$collection->order(‘header.price’,“asc”);

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,

Regards.

Thierry

Please create an issue, and i’ll look at it on GitHub: https://github.com/getgrav/grav/issues

Hello,

Thanks for your answer.

Problem solved with PHP FLAG :slight_smile: => https://github.com/getgrav/grav/issues/1640

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

Thanks for all. Really enjoy GRAV :slight_smile: