API call (/katello/api/organizations/:organization_id/environments) returns Lifecycle Environments sorted by name
API call returns Lifecycle Environments sorted by order
Foreman and Proxy versions:
Foreman and Proxy plugin versions:
Distribution and version:
Other relevant data:
There appears to be no way of changing the parameters of the API call to fetch them in the order in which the lifecycle occurs. If there a way to get them in order, or do I need to write an algorithm to sort them after making the API call?
Sorry for the delayed response! Things have been crazy with the current situation.
Unfortunately the sort order that I’m looking for isn’t one that SQL handles directly (as far as I know at least). Specifically I’m looking to have them sorted in the order that they appear in the content view promotion screen (screenshot below). The API call does return the ordering in what’s essentially a doubly linked list that I could then sort myself. However, I was looking to see if there was an existing solution.