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 / Sorting for Non Datave...
Power Apps
Answered

Sorting for Non Dataverse Data Sets in PCF

(0) ShareShare
ReportReport
Posted on by 4

I have been working on implementing a detailslist based pcf component which is to be used for dataverse as well as for non dataverse based dataset. 

No I have read the documentation for the PCF API reference and it clearly says sorting is only supported for the Dataverse datasets.

Is there a way that I can implement sorting when the dataset is of non dataverse type. One such example is I have a collection which is populated from json reply from an API, how can I implement sorting on such dataset?

 

Any guidance is highly appreciated.

I have the same question (0)
  • Verified answer
    cchannon Profile Picture
    4,702 Moderator on at

    Yeah, this is an easy one. Just don't use the PCF API sorting capability.

     

    Instead, take your result data and push it into a normal array, then use .sort on that object. Now you have no dependency on the database because it is all happening client-side.

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
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard