cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
AdrianAtEckoo
Level: Powered On

Sorting gallery by Date Now()

Hi

 

I'm trouble sorting a gallery by its date created. 

 

My table has a Date column and it is automatically filled out with Now() function. 

But I cant seem to be able to sort the gallery using 

 

SortByColumns(datasource, "Date", Ascending) or even Descending. 

 

I would like to so that it puts the newest entries at the top of the gallery.

 

Thanks in advanced


Accepted Solutions
MatthewInwards
Level: Powered On

Re: Sorting gallery by Date Now()

Hi, This should work to sort them with the newest at the top. SortByColumns('DataSource',"Created",Descending) Hope it works for you Smiley Happy

All Replies
MatthewInwards
Level: Powered On

Re: Sorting gallery by Date Now()

Hi, This should work to sort them with the newest at the top. SortByColumns('DataSource',"Created",Descending) Hope it works for you Smiley Happy
PowerApps Staff Rank CarlosFigueira
PowerApps Staff

Re: Sorting gallery by Date Now()

Where are you using the SortByColumns expression? If you use it in the Items property of the gallery, then you should see it ordered by the Date column.

You can take a look at the attached app, it shows one example of using the SortByColumns function in the gallery to show the newest items on top.