I have a vertical gallery in my app to show items from a SP List called TLStatus, the list has around 8,000 items in it. One of the columns is "Due" which is a date column in SP, all of the lines have dates on them.
This is my "items" event for the gallery, It is supposed to filter by SF_PROJECT_ID and Status, and sort by Due date-
Sort(Filter(Filter(TLStatus,SF_PROJECT_ID=sfProjectID),Status="Not Started"||Status="In Progress" || Status="Complete" ||Status="Incomplete"),Due)
If I remove the Sort() function, it loads the items as it should. If I sort by another column, ex customerTasks which is a text column, it works correctly.