cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Nicco2712
Regular Visitor

Sorting my Date in Gallery

Hey guys,

 

im really new to this and i have no knowledge in codeing.

 

My App Gallery contains Employee Name and Date. When i click on the Sorting Button nothing happens..

 

OnSelect:

 

UpdateContext({SortDescending1: !SortDescending1})

 

tooltip:

If(SortDescending1; "Liste in umgekehrter alphabetischer Reihenfolge sortieren"; "Liste alphabetisch sortieren")

 

Can you help me to fix it? I want it to sort after Date. My list is based on sharepointOnline list.

 

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
eka24
Super User III
Super User III

Consider this;

Sort(Datasource, DateColumn, 

If(SortDescending1, Ascending, Descending))

 

If you have issues, share the code on the Items property of the Gallery

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

 

View solution in original post

2 REPLIES 2
eka24
Super User III
Super User III

Consider this;

Sort(Datasource, DateColumn, 

If(SortDescending1, Ascending, Descending))

 

If you have issues, share the code on the Items property of the Gallery

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

 

View solution in original post

sorry for the late response.

I got this code:

 

onselect:

 

UpdateContext({SortDescending1: !SortDescending1})

 

tooltip:

If(SortDescending1; "Liste in umgekehrter alphabetischer Reihenfolge sortieren"; "Liste alphabetisch sortieren")

 

 

In my Gallery it shows Collum"Mitarbeiter" "Datum" and "Bemerkung". I want to sort for "Datum" = Date.

 

 

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (57,670)