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

Issue with relationship sorting (alpha) and cases.

How Do I?

RComm's avatar
RComm
1 posts
10 years ago
RComm's avatar RComm

Hi, all.

I’m currently running EE 2.9.2 on a site. I have a relationship field that takes all selected entries and sorts them by a custom channel field for the display title.

I’ve used this specific call:

{relationship orderby="custom_field" sort="asc"}

The only problem is that this field has several instances where it begins with a lowercase letter, due to a company’s name being written that way (and thus unable to be capitalized). The returned values will place them outside of all of the entries beginning with capital letters, regardless of the letter they start with.So it alphabetizes the capital letters first, then alphabatizes the lowercase instances.

Example: Leonardo Michelangelo Splinter donatello raphael

Is there any way to override this rule? Or is there an extra parameter needed in the Relationships tag pair?

Many thanks in advance.

       

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.