Sorts the field set collection by the value of the specified field property. A property in this sense is anything that could normally be accessed off the field set, which includes methods of the field’s type delegates, or properties of the field (e.g. alt text in an image, or duration of a video).
Note: this method is only appropriate for field sets that allow multiple items.
Parameters:
-
The name of the field to retrieve the property to sort by
-
The name of the property to sort by
-
String $order = ASC
The order of the sort, either “ASC” for (ascending), or “DESC” (descending)