Hi all,
I’ve tried to browse forums etc. but haven’t been able to find a working answer to this one, so hope you can help!
Here’s the context:
- I have a repeating group of cards based on a table of Destinations in the database. Each card has some info drawn directly from the destinations, like name, country, image, etc… See below for a screenshot:
Here’s the trick, the cards in the repeating group also has a field to display its minimum price. This number comes from a related database with flight prices where there are many prices per destination, so I’m searching for flight prices and filtering for prices where the destination airport name is the same as the destination airport name in the parent group (i.e. the card), and then taking the minimum price.
I obviously want to sort this repeating group, i.e. list of cards, by price so I can have the minimum price at the top, but I can’t find a solution to do so.
The plugin Lift Shifter KW might be a solution from the below article, but I cant get it to work on my scenario.
https://www.google.com/search?q=bubble+sort+repeating+group+by+related+field&rlz=1C1CHBF_en-GBAU912AU912&oq=bubble+sort+repeating+group+by+related+field&aqs=chrome..69i57j33i160l3.9416j1j4&sourceid=chrome&ie=UTF-8#fpstate=ive&vld=cid:dc933fa2,vid:AbXSLsegB-c
Hope you can help!!!