We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

can you orderby a grid field on exp:channel:entries?

How Do I?

pelluche's avatar
pelluche
38 posts
one year ago
pelluche's avatar pelluche

I have a users table with multiple grid fields based off week you are on. I want to list all users in order based off a grid field called “total_wins”. Is this possible? I need to access fields from each entry outside of the grid so I don’t think i want to put the orderby on the grid pair.

I’ve tried something like this for the orderby

{exp:channel:entries 
    channel="users" 
 search:league_id="{segment_2}"
 orderby="week_{segment_4}_picks:total_wins" 
 sort="desc"
 disable="categories|category_fields|pagination|relationships|relationship_custom_fields|relationship_categories"
{/exp:channel:entries}

i’ve also tried orderby=”total_wins” and orderby=”{week_{segment_4}picks}{week{segment_4}picks:total_wins}{/week{segment_4}_picks}”

       
creativearc's avatar
creativearc
68 posts
one year ago
creativearc's avatar creativearc

Interesting. It’s hard to say if entries can be sorted by contained grid data with this much granularity.

This might be worth asking in the Slack channel.

https://expressionengine.com/blog/join-slack

       
Cluall's avatar
Cluall
1 posts
10 months ago
Cluall's avatar Cluall

@slope I find much useful info here.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.