web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

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)
  • raks Profile Picture
    on at

    Finally, it works. Maybe I've to add the sortOrder columns in TabList.

    Thanks for your help and investment to find a solution.

  • Verified answer
    Anchov Profile Picture
    1,986 on at

    The '.' notation enables you to specify the column you wish to display as labels in your tab list. It comes after the closing parenthesis of your SortByColumns function and is not an argument of this function. This effectively "creates" a 1-column table instead of displaying multiple columns from the entire SharePoint list.

    Anchov_8-1697546945728.png

     

    Custom Sort:

    Anchov_1-1697546509988.png

    I've observed that without using this approach, I lose my custom sorting, and the behavior reverts to what you've described (PowerApps determines the columns and sort order).

    The custom order is lost, and it defaults to sorting by 'id'.

    Anchov_3-1697546681701.png

    Anchov_4-1697546751545.png

    This looks to be the cause of your issue:  The Items property has to be in the format of a 1 column table.


    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 don't understand your remark in red. SortByColumns doesn't take an argument with a '.'

    And if I try, no error but nothing is shown.

    In meanwhile, I'll ask my scrummaster if it's acceptable with a number in the label.

  • Anchov Profile Picture
    1,986 on at

    In my experience, I have seen this control be a little glitchy (it is still in preview after all).  Try adding a brand  new modern tab component to the screen, then and copy and paste the Items code you entered above to see if you see the same results .

    Anchov_0-1697468689958.png

     

  • raks Profile Picture
    on at

    @Anchov 

    I've exactly done the same but still not work:

    raks_0-1697468186960.png

    raks_1-1697468212251.png

     

  • 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

     

  • 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.)

  • 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

     

  • raks Profile Picture
    on at

    I've already test like this:

    raks_0-1697462803770.png

    Still no effect:

    raks_2-1697462872289.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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
Kalathiya Profile Picture

Kalathiya 428

#2
WarrenBelz Profile Picture

WarrenBelz 374 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 333 Super User 2025 Season 2

Last 30 days Overall leaderboard