cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
PMO_CH
Helper III
Helper III

SortbyColumn Datetime and Timerange

Dear Comunity,

My gallery which is showing items from a sp-list doesn't filter how i think it should 😞

I have a Column named exactly "Date / Time and it's formatet as Date / Time

Then in the gallery i can choose a Timerange with date from and date to (This works good)

Now, additionally i wan't to sort the columns by date / time. But it doesn't want or/and i don't know how.

 

PMO_CH_0-1620733584059.png 

PMO_CH_1-1620733726176.png

 

Thank you very much 🙂

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @PMO_CH ,

You need single quotes around 'Date / Time' when you use Sort().

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

 

View solution in original post

5 REPLIES 5
WarrenBelz
Super User
Super User

Hi @PMO_CH ,

That syntax is correct and should work - have you tried Sort instead of SortByColumns ?

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Morning @WarrenBelz 

If i take SortByColumns th syntax doesn't work:

PMO_CH_0-1620797429781.png

 

with "sort" i can apply the syntax but i got the warning message in the gallery and sort doesn't work:

PMO_CH_1-1620797515615.png

 

PMO_CH_3-1620797579926.png

The warning mean: Sort function maybe doesn't work for big datasets correctly.

Also the sort-toggle button in the app doesn't work.

About the filter:

When i look on the dates in the gallery; is it possible that its sor by the days?

PMO_CH_4-1620797766235.png

 

Thank you 🙂

 



Hi @PMO_CH ,

You need single quotes around 'Date / Time' when you use Sort().

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

 

View solution in original post

That's the solution.

Everytime i have my own trouble with single quotes and the double one.

 

thank you very much and have a great day.

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (3,686)