Me again, I have some code here that I am filtering and putting in the gallery, but now I want to sort the gallery by the date column in descending order (so the earliest to oldest) . Here is what I have come up with. The Data type for the Date column is Date and Time, with a Date only format.
Right now, the gallery shows as:
7/8/2022
1/5/2023
12/15/2022.
The expected result should be:
1/5/2023
12/15/2022
7/8/2022
Clear(Exa);
Collect(
Exa,
Sort(Filter(
'db.Di',
L1 = varL1 && L2 = varL2 && L3 = varL3 && L4 = varL4 && Source = "Ins"
), Date, Descending)
);