Hi @Expiscornovus
Correct, I just used a Compose action.
I've now applied what I learnt to my real problem and got that working.
A couple of other sort related things:
I also discovered that the sort function doesn't like nested objects so I had to use a Select action before calling sort to make sure my data was better organised.
When using sort you also have to be careful that none of the values you are sorting on are null.