cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Anonymous
Not applicable

Is it possible to sort a collection alphabetically?

Hello,

I am using Graph API to gather a list of employee names, and have a dropdown showing the employee names that are in the collection.  I want to sort the data in alphabetical order, and tried using Sort(CollecitonName, DisplayName) in my Items property of the dropdown.  However, it still will not sort alphabetically.  Am I doing this wrong or is it not possible to sort a collection?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Resolver III
Resolver III

Re: Is it possible to sort a collection alphabetically?

What you have should sort alphabetically by the first name.

 

Sorting by last name, on a full name string, would be more complicated.  Assuming everyone's full name has only one space.

 

Sort(AddColumns(CollectionName,"LastName",Right(FullName,Len(FullName)-Find(" ",FullName))),LastName)

 

Just a guess, might need more detail though.

 

Chris

View solution in original post

2 REPLIES 2
Highlighted
Resolver III
Resolver III

Re: Is it possible to sort a collection alphabetically?

What you have should sort alphabetically by the first name.

 

Sorting by last name, on a full name string, would be more complicated.  Assuming everyone's full name has only one space.

 

Sort(AddColumns(CollectionName,"LastName",Right(FullName,Len(FullName)-Find(" ",FullName))),LastName)

 

Just a guess, might need more detail though.

 

Chris

View solution in original post

Highlighted
Anonymous
Not applicable

Re: Is it possible to sort a collection alphabetically?

Hi @ChrisR,

 

That worked.  Thanks for your help!

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors
Users online (5,237)