Sort repeating group by each item data from API

Hi all,

I am currently attempting to sort a repeating group by data that is being pulled individually for each list item. Is this possible?

Screen Shot 2022-07-05 at 4.40.31 PM
The API1 data is being pulled from the input (the RG data source), and the API2 data is being pulled from API1. I would like to sort the RG by API2.

@keith Can listshifter help?

I have two API workflows for my “API display things” haha.

One is to display ONE thing.
Another is to display the LIST of things.

Your case you’d want to use the RG for the list of things, and then the current cells index, you’d use the ONE thing api.

That’s how I do it.

Yep. List Shifter’s SORT action lets you sort one list (list held in List Shifter) by another arbitrary list (the “Sort Source List”). (A mapped sort.)

The two lists are combined into objects, sorted by the Sort Source List, and then the new order of the held list is present at the Shifted List output.

2 Likes

Right, but how would you sort it via the ONE thing?

Instead of search for a list of things, I search for a specific thing by unique ID. And return that thing.

For a list of things, it’s just do a search for all things. And return that list.

“Return” is the action used in your backend workflow for your API data.