cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
TomLU123
Frequent Visitor

Default Sorting from Newest to Oldest

Hi Experts, 

 

I am creating an announcement list. Currently, the list is sorting from oldest to newest by default. 

List sorting.png

 

How can we set the default sorting of the lits from Newest to Oldest? What formula should be used?

 

Many thanks!

 

Best regrads, 

Tom

1 ACCEPTED SOLUTION

Accepted Solutions
v-monli-msft
Community Support
Community Support

Hi @TomLU123,

 

Find the formula on this gallery and change the sorting order from Ascending to Descending. Here's an example on how to sort by the most recent date:

Sort(datasource,CreatedOnDateTime,Descending)

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

6 REPLIES 6
v-monli-msft
Community Support
Community Support

Hi @TomLU123,

 

Find the formula on this gallery and change the sorting order from Ascending to Descending. Here's an example on how to sort by the most recent date:

Sort(datasource,CreatedOnDateTime,Descending)

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Hi Mona, 

 

It works perfectly! 

Many thanks for your great support!!

 

Best regards,

Tom

Hi Mona, 

 

I have a similar issue for data table. 

 

Can't seem to find the "sort" function you mention from the left drop down menu on power apps. 

 

Can you help with this? 

 

Thanks

Thank you

Hi, I'm trying to implement the same solution and can't figure out where to insert this formula in the gallery. Could you point me in the right direction?

Items. You could even incorporate something like the above into a filter:

 

 

Sort(Filter(ImageLib,ID=BrowseGallery1.Selected.ID,ItemType="Image"),Modified,Descending)

 

 

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (1,076)