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

Unable to sort date

Hi all,

I have a gallery which I want to sort by dates.

SortByColumns(Filter('Sharepoint List',StartsWith(Title)), "ReviewDate", If(Dropdown_Sort.Selected.Value = "Review Date (Ascending)", Ascending, Descending)

Right now as I have saved the date as text in Sharepoint, it is sorting as such
01/Nov/21
02/Dec/20
03/Mar/21

Instead I want this
02/Dec/20
03/Mar/21
01/Nov/21

How would I do that?

Best

1 REPLY 1
Pstork1
Dual Super User
Dual Super User

The problem is that you are saving the column as text, so its sorting alphabetically, not by date.  You can either change the text to be in the format of yyyy-mm-dd which will sort alphabetically correctly or you can save the date as a date column and sort on that.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Join me at 365EduCon in Chicago on Sept. 26-30 where I'll be presenting on the Power Platform!

Helpful resources

Announcements
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Users online (1,766)