How to alphabetize drop-down options in PowerApps
(Apologies if this is a duplicate, but I could not find my original post. Admin, delete if needed.)
Hi, I have a PowerApp form. I inserted a Drop-down control to the form. I connected the drop-down to my SharePoint List, called "Job Profile Matrix". The column I want in the drop-down to pull values from is called "Job_Families_and_Groups_on_Job_Profile." I want to get the drop-down options to be in alphabetical order for a better user experience. CoPilot hasn't been very useful as it has me using either SortByColumns or Sort, and mixing when "Result" is in quotes or not. Below is my current formula, thats not working. I don't get any errors, but when the user looks at the Drop-Down values in the published version, the values are not in alphabetical order. How do I fix this?
Sort (
Distinct(
'Job Profile Matrix',
'Job_Families_and_Groups_on_Job_Profile'
),
"Result",
SortOrder.Ascending
)