Skip to main content

Questions tagged [multisort]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer

Sort entries by separate related entries count

I am working on a sprig board that filters out Lessons from a structure in Craft. This screenshot better illustrates this and how it works. The main table is built using the following: {# Sets default ...
Terry Upton's user avatar
  • 1,894
1 vote
1 answer

Help with correct syntax regarding multisort please

Hi hoping for a quick resolution on this as a lot of scripting relies upon it. I have an array: {% set furniture = [ { 'name': 'chair', 'price': '100' }, { '...
cannon303's user avatar
  • 309
1 vote
1 answer

Multisort flag doesn't seem to work

The multisort flag for arrays doesn't work the way I'm trying it. This is how I'm using it. {% for conv in conversations|multisort(['postDate'],['SORT_DESC']) %} This is the error I keep getting. ...
kinoli's user avatar
  • 51
1 vote
2 answers

Syntax for Multisort Filter

I am trying to use the new multisort filter to sort an array in reverse order using a date key, but can't seem to figure out the correct syntax. Here is what I have: {% for rides in allRides|...
Roi Agneta's user avatar
  • 1,463