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 Automate / How to use 'order by' ...
Power Automate
Unanswered

How to use 'order by' / 'get items'

(0) ShareShare
ReportReport
Posted on by 171

Hello all,

 

I have a SP list called Employeelist. This list has a column called' EmployeeName' which has a value 'Mr XXX'. What I'am struggling with is to sort this list by column ' EmployeeName' but always show the specific value 'Mr XXX' at the end of the list.

 

I would be so happy if it can be done inside of Order BY in get items but I'm not sure if its possible.

Is there a way to do that?

Any help will be appriciated.

 

Thank you in advance.

Cheers Angela

@v-dezhili-msft 

@merlock18 

@v-chengfen-msft 

@RobElliott 

@Drrickryp 

@WarrenBelz 

@RezaDorrani 

Categories:
I have the same question (0)
  • Fredrik_A Profile Picture
    3,570 Super User 2026 Season 1 on at

    I Believe you can do the following, just replace the column name:

     

    if you want it sorted another way do desc instead of asc. 

     

    StretchFredrik_0-1677749534541.png

     

  • Mana Profile Picture
    171 on at

    yes but I want to have the specific value to be at the end of the list

  • grantjenkins Profile Picture
    11,063 Moderator on at

    Assuming you mean the sort order within your SharePoint List itself and not within Power Automate - one way would be to add a Calculated Column and set the formula to:

     

    //Assuming your field display name is Employee Name
    
    =IF([Employee Name]="Mr XXX","ZZZZ",[Employee Name])

     

    grantjenkins_0-1677763698128.png

     

    Then in your main view, set the Order by your Order field.

    grantjenkins_4-1677764025546.png

     

    An example of what the List would look like:

     

    grantjenkins_3-1677763968849.png

     

    If that's not what you meant, then let us know.


    ----------------------------------------------------------------------
    If I've answered your question, please mark the post as Solved.
    If you like my response, please consider giving it a Thumbs Up.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 639

#2
Valantis Profile Picture

Valantis 392

#3
11manish Profile Picture

11manish 350

Last 30 days Overall leaderboard