web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Sort gallery by rank w...
Power Apps
Unanswered

Sort gallery by rank which is being updated in the gallery itself

(0) ShareShare
ReportReport
Posted on by

Hello all,

 

Continuing this post, I want to sort the gallery where I show the participants by ascending sequence number without having it refresh everytime I change a field in the gallery. Quick refresher: I have a set of participants (Deelnemers) and their sequence number (Volgorde) for an event. Their sequence number is updated in a gallery. This is saved to the sharepoint entry of the event via a save button in a nested concatenated string, for example: 1-1;2-5;3-2;4-4;5-3 meaning participantID 1 is first, participantID 2 is 5th and so on:

 

eschoo_0-1695815596456.png

 

After the values from the gallery and thus the string has been saved, I want to refresh the gallery where the participants are sorted by their sequence number ascending. When I use this code for the OnChange of the Volgorde (sequence) field the gallery refreshes immediately, making it impossible to work with the gallery correctly:

 

 

 

UpdateIf(colGalleryDeelnemersNieuweVolgorde, ThisItem.ID = ID, {Volgorde: Self})

 

 

 

 

I am running in circles using various collections to store the sequence numbers, but at this point I'm just guessing what the correct method of doing this is.

 

In short:

Anybody have an efficient general description of sorting galleries based on sequence number where the sequence numbers are changed in the gallery itself? The sorting should only take place after the sequence numbers have been saved to Sharepoint using a save button.

Hope I make myself clear!

Categories:
I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 325 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 88 Super User 2026 Season 1

Last 30 days Overall leaderboard