Sorting Data from an Intergation in a ReadOnly Grid

I have Data from an Integration call that is to be displayed in a ReadOnly Grid in descending order for ease of reference.

The Local Variable is structured as follows:

local!Data.result.body.contactData

contactData is an array containing ContactNumbers and each contact number's count of Sources i.e. where the number came from/ number of data providers that provided the number.

I want to sort the ReadOnly Grid such that the Initial Sort is based on Count of Sources in descending order i.e. The Contact number with the highest count of sources should be at the top.

The Sort info below logic does not work for me

a!sortInfo(
field: local!Data.result.body.contactData.numberOfSources
)

Order

Descending

Any ideas on the correct approach?

Thanks for your help in advance.

  Discussion posts and replies are publicly visible