Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setcontent order by integer doesn't sort properly #1356

Closed
milosa opened this issue May 6, 2020 · 0 comments · Fixed by #1616
Closed

Setcontent order by integer doesn't sort properly #1356

milosa opened this issue May 6, 2020 · 0 comments · Fixed by #1616
Labels
🐛 tag: bug This is a bug.

Comments

@milosa
Copy link

milosa commented May 6, 2020

I added a field to my contenttype:

        order:
            type: integer
            label: Volgorde

Then, in my template, I used:

{% setcontent contenttype_name = 'content' orderby 'order' %}

I added three records. With the order numbers set to:

10, 50 and 100

I expected the records to be ordered in that order. But instead, they were ordered:

10, 100 and 50

It appears they are ordered as a string or something...
When I use 1, 2 and 3 as order, they are ordered correctly.

Details

Question Answer
Relevant Bolt Version 4.0.0 RC 18
Install type Composer install
PHP version 7.4.5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 tag: bug This is a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants