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?
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.
Jici
July 5, 2022, 9:49pm
2
@keith Can listshifter help?
GH5T
July 5, 2022, 9:59pm
3
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.
keith
July 5, 2022, 10:25pm
4
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?
GH5T
July 6, 2022, 1:37am
6
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.