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 / What're the difference...
Power Apps
Answered

What're the differences between SortOrder(s) and SortOrderTable in the function "SortByColumns"?

(0) ShareShare
ReportReport
Posted on by 7
Categories:
  • eka24 Profile Picture
    20,925 on at

    SortByColumns as the name implies makes it possible to sort with multiple columns at the same time.

    Example:

    SortByColumns(MyFirstList,"ID","Column2","Column3") in that order. Thus sorting is done by String
     
    Sort on the other hand would be:
    Sort(MyFirstList,ID)
     
    Note the Sort is not in quotes ""
    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.
  • Gilbert_Wong Profile Picture
    7 on at

    It seems that you did not answer me the differences between SortOrder(s) and SortOrderTable.🤔

    Could you please talk more about this?

  • Verified answer
    eka24 Profile Picture
    20,925 on at

    The SortOder has do do with Ascending or Descending.

     

    With SortOrderTable, you specify a Table or range of values in which the ordering should be done.

    For instance: SortByColumns(MyFirstList,"ID",[8,3,5])

    This Sorts the ID Column by 8 followed by 3 then 5 based on the numbers in the ID Column.
     
    With SortByColumns(MyFirstList,"ID",[1,3,5]) , ID 1 will be listed first followed by 3 then 5 before the other IDs will follow in that order.
     
    When that is not specified, Ascending order will be 1,2,3,4,5,6,7,8.
     
    So it gives you another way of customizing the manner in which the sorting should follow.
     
    That is my understanding. hope it makes sense
    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

     

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard