Skip to content

orderByFallback() function request #11457

Closed Answered by brandonkelly
kellyannmcnamara01 asked this question in Ideas
Discussion options

You must be logged in to vote

Great idea. I’ve just made this possible for Craft 4.1, all via existing orderBy param (#11470). Going forward you will be able to set that to score + additional column values, e.g.

{% set entries = craft.entries()
  .search('foo')
  .orderBy('score, title asc')
  .all() %}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@brandonkelly
Comment options

Answer selected by brandonkelly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants