Sorting array of simple objects


I'd like to sort an array of objects, by one of the object properties 'placename'.  Example element of data:

[
{
Place: 760
placename: 'Birmingham'
profiles_places_id: 2
}
]

I've watched two videos, but I still don't get it:

Xano - Sorting Arrays of Objects
Xano - Array Filters: Sort

I added a sort filter in the Response as per the first video, but got errors. My set-up is shown in screenshot 1 below. I think the way I am referencing the parameter to sort by is incorrect but it's not obvious how to select  the 'placename' property

The second video features quite a complex data structure and requires a loop and some other stuff which seems overly complicated for what I need.

Is there a simple way to sort the array, as described above?

In the Function stack - Response section - filter - sort.[s1.jpg]
Other
2 replies