Displaying sorted results using notify action in a for loop
Hello - has anybody tried displaying sorted results using Notify action within a for loop? We are invoking notify within a for loop and passing it an employee list that is sorted by the last name. However the results displayed are not ordered. It seems like notifications are sent at random. Kindly share any insights / solutions if you have encountered this.
- for:
output_key: sent_notifications
each: employee
index: idx
in: data.merge_result.employees
steps:
- notify:
output_key: notification_result
recipient_id: meta_info.user.id
message:
RENDER():
args:
full_name: employee.full_name
country: employee.country
total_pending: employee.total_pending
preview_trainings: employee.preview_trainings
template: |
👤 **{{full_name}}** – {{country}}
🗒 **{{total_pending}} pending training(s)**
{{preview_trainings}}