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

Weird issue with sorting with grouping. #3210

Closed
bobdenotter opened this issue Mar 21, 2015 · 4 comments
Closed

Weird issue with sorting with grouping. #3210

bobdenotter opened this issue Mar 21, 2015 · 4 comments
Labels
blocking release bug A bug that has been verified

Comments

@bobdenotter
Copy link
Member

I have a simple contenttype, like this:

entries:
    name: Entries
    singular_name: Entry
    fields:
        title:
            type: text
            class: large
            group: content
        slug:
            type: slug
            uses: title
        ...
     relations:
        pages:
          multiple: false
          order: title
          label: Select a page
    taxonomy: [ chapters ]

But, the sorting changes slightly, depending on how many items I request. In the below example, the top two items flip order. They are in the same 'group'.

{% setcontent records = 'entries' limit 3 allowpaging %}

{% setcontent records = 'entries' limit 5 allowpaging %}

As soon as you explicitly define an order it's OK:

{% setcontent records = 'entries' limit 3 order 'title' allowpaging %}
@bobdenotter bobdenotter added the bug A bug that has been verified label Mar 21, 2015
@bobdenotter bobdenotter added this to the Bolt 2.2 - Feature release milestone Mar 21, 2015
@GwendolenLynch GwendolenLynch modified the milestones: Bolt 2.2 - Feature release, Bolt 2.3 - Feature release Jul 10, 2015
@SvanteRichter
Copy link
Contributor

@bobdenotter Still an issue? Seems like one of the recent Mega-PR's would have had to touch this :)

@GwendolenLynch
Copy link
Contributor

Potentially, but we might track this here regardless as grouping is currently broken in master… deliberately left until post-merge to get that branch in and exposed.

@bobdenotter
Copy link
Member Author

This is (accidentally) fixed in Bolt 2.2.12.

Fixed: Don't sort getContent in listing view, when the contenttype has a taxonomy that has a sortorder.

@GwendolenLynch
Copy link
Contributor

Fixed in #4073

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocking release bug A bug that has been verified
Projects
None yet
Development

No branches or pull requests

3 participants