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 / Sort a combination of ...
Power Apps
Answered

Sort a combination of string and number

(0) ShareShare
ReportReport
Posted on by 353

Hi all. I have set my gallery items as follow:

Distinct(Filter('SPLIST',And('Name 1'= var1,'Name 2' = var2)),Level)

 

The gallery list should sort out like this:

L1

L2

L3

 

But, this came out instead:

L2

L3

L1

 

Anyone know how to fix it? Thank youu!

 

 

Categories:
I have the same question (0)
  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @_kikilalaaa 

    Please consider changing your Formula to the following:

    SortByColumns(
     Distinct(
     Filter('SPLIST', And('Name 1'= var1,'Name 2' = var2)),
     Level
     ),
     "Result"
    )

    I hope this is helpful for you. 

  • _kikilalaaa Profile Picture
    353 on at

    Thank you! it works perfectly!

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 477

#2
WarrenBelz Profile Picture

WarrenBelz 341 Most Valuable Professional

#3
11manish Profile Picture

11manish 317

Last 30 days Overall leaderboard