
Announcements
Hello there!
I am sorting my gallery using the Sort function. It is only sorting one way, when I try to make it the other way, it is not working. Here is the code:
Whenever I press the sort button, the value from SortDescending1 is changing from true to false. So that part is working. It is just not sorting correctly.
Sort(
Search(
If(
gblIsAdmin;
If(
selectedStatus = "All";
'Manco-Informatie';
Filter(
'Manco-Informatie';
IsBlank(selectedStatus) || Status = selectedStatus
)
);
Filter(
'Manco-Informatie';
If(
selectedStatus = "All";
Verzender = User().FullName;
Verzender = User().FullName && (IsBlank(selectedStatus) || Status = selectedStatus)
)
)
);
TekstZoekVeld.Text;
"Verzender";
"Status";
"Deelorder";
"Extern";
"Product";
"Intern";
"Datum";
"Tekeningnummer";
"Omschrijving";
"VolledigTekeningNummer"
);
"Ticket ID";
If(
SortDescending1;
Ascending;
Descending
)
)
Hi @Anonymous ,
You do not need double quotes around a Sort syntax - If the name is Ticket ID (with a space), you need 'Ticket ID' (single quotes) .
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.