Add “Sort Array” Action in Triggers

It would be great to have a “Sort Array” action available directly in triggers (app, automation, machine etc) for variables.

Currently, sorting arrays requires tedious workarounds involving loops, conditions, or custom widgets, which is not efficient or easy to maintain. A built-in Sort Array action would make this process much simpler and cleaner.

Ideally, the action should support:

  • Sorting by numeric, text or date values

  • Optional sort order (ascending or descending)

  • Handling of objects (like sort by a property within object items)

This would save time, reduce complexity, and make app development far more user-friendly and efficient.

Thanks for considering!

Tarun

Thanks Tarun! Keeping an eye on upvotes here. We’ve heard this from other customers and partners as well, and will see what we can do to get some improvements to Expressions slotted in in the near term.

Functions could also help provide a workaround for common/basic methods until we’re able to get those implemented as native Expressions.

1 Like

I agree.

I have an custom widget for that purpose, but for text arrays only.
This is also able to remove duplicates and switch to uppercase and lower case values.

If you are interested, let me know. However I agree this should be available in triggers directly.

1 Like