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 / How to sort tab list (...
Power Apps
Answered

How to sort tab list (Modern Controls)

(0) ShareShare
ReportReport
Posted on by

Hello,

 

I'm using the new component tab list and get my values from a SP List (no other way with a multilanguage App).

Tab list keep always the alphabetical order. I try to put a Sort in the query but that have no effect.

The only workaround I found is the put a number before each label but no solution to have my tab labels without the number.

 

Any ideas or should I suggest to Microsoft to activate sort on tab list?

Categories:
I have the same question (0)
  • Anchov Profile Picture
    1,986 on at

    I was able to sort the modern tab list using a Sort function, see example below:

    Anchov_0-1697460068235.png

     

    Try showing what you have tried in your app by sharing a screen shot or copy and paste your code?


    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.

    Cheers!
    Rick Hurt

  • raks Profile Picture
    on at

    Here is my query with the order I wish:

    raks_0-1697460991221.png

     

    And here is the result (alphabetical order is applied):

    raks_1-1697461021137.png

     

  • Anchov Profile Picture
    1,986 on at

    Sorry, I am a bit confused, it appears the sort on alphabetical order is working then (based on your second screen-shot)?

  • raks Profile Picture
    on at

    I want the order based on my first screenshot, that could be based on the ID too.

    If I remove the Sort, the tabList is always ordered in alphabetical order:

    raks_0-1697461582401.png

     

    I don't understand why because, based on the ID, the first item created in the list was "Informations de contact".

  • Anchov Profile Picture
    1,986 on at

    Alright, to achieve this, you'll first need to create a column in your data source named 'SortOrder.' Assign numerical values to the fields in the order you desire (e.g., 1, 2, 3...). Afterward, utilize the Sort function to sort based on this 'SortOrder' column:

    Sort(Filter('Contactbook-Lavels', Screen=TeamTabbladen", CBLanguage.Value=varLoan), SortOrder, SortOrder.Ascending)

    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.

    Cheers!
    Rick Hurt 

  • raks Profile Picture
    on at

    I've already test like this:

    raks_0-1697462803770.png

    Still no effect:

    raks_2-1697462872289.png

     

  • raks Profile Picture
    on at

    @Anchov 

    Something interesting:

    I put the same query in a Combo Box Modern Controls and have the same result:

    raks_0-1697463417275.png

     

    But with a classic ComboBox, I have the good result:

    raks_1-1697463441795.png

     

  • Anchov Profile Picture
    1,986 on at

    It likely sorting by ID (and the order you put it in the alphabetical order).  Using the Sort Order column will allow you to sort on a different column and not have to prefix your labels with 1, 2, etc.)

  • Anchov Profile Picture
    1,986 on at

    Here is an example:

    Anchov_0-1697464706565.pngAnchov_1-1697464737439.png

     

  • Anchov Profile Picture
    1,986 on at

    Here is an example:

    Anchov_0-1697464706565.pngAnchov_1-1697464737439.png

     

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!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 542 Most Valuable Professional

#2
Haque Profile Picture

Haque 206

#3
Kalathiya Profile Picture

Kalathiya 201 Super User 2026 Season 1

Last 30 days Overall leaderboard