I'm working on a voting app, and I created the results screen based on this video by Reza Dorrani
My galleries look like this:

I want to sort the gallery items in descending order based on the number of nominations, but I can't figure out how to do it.
The code for the Number of nominations (NumberOfNominations_sum) Text property:
CountRows(Gallery7.AllItems)
And the Items property of the main gallery:
GroupBy(
AddColumns(
StarAwards_DeviceOperations_Nominees, "NomineeText", Nominee.DisplayName
),
"NomineeText",
"Data"
)
Not sure how to use the Filter and Sort functions in this case.
Thanks in advance for any suggestion!