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

Sort Gallery

I've been building an app that has a dashboard screen that shows appointments coming up. The appointments are listed in a gallery that gets records from a createappointment screen. I want the gallery page to sort the records according to the time of the appointment. Do I use sort or sortcolumns? Is the data source the gallery or the collection? Finally, do i place a sort button on the dashboardscreen to get it to sort, or can the dashboard screen automatically sort on visible?

 

Thanks

2 REPLIES 2
bucciface
Level: Powered On

Re: Sort Gallery

I was able to get the gallery to sort...but I have another problem. The times for the appointments were manually inputed as text. Now when it sorts, it's able to sort between 8:00 and 12:00 no problem, but the afternoon times go to the top of the gallery. How can I get it to sort according to normal 24 hour clock time?

Highlighted
Sienna
Level 10

Re: Sort Gallery

You have to trasfer it back to time value or date-time value. If you have only time in your column then use 

TimeValue(ColumnName)

If you have date and time use

DateTimeValue(ColumnName)

 

Helpful resources

Announcements
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

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