Incorrect args description of new "Sort()" formula function?

It appears to take two arguments:

image

1 Like

Hello.
So this is quite rare case here.
From the beginning we tried to support both types of syntax:
Tasks.Sort(Name)
and
Sort(Tasks, Name)

Expressions above are equal

Second one still works in editor, but we never suggest it, and in general there are some issues with intellisense, etc.
In case you use second syntax, sort function really requires one argument of type collection :slightly_smiling_face:

I guess we will remove second type of syntax sometime and in case you write just Sort(), without collection field before it, we will write smth meaningful like “Sort is a collection function, please call it on a collection field via dot”.

2 Likes