The data was being displayed fine until when the SharePoint list crossed 5000 entries. However, now not a single item is being displayed. This is the query I have on the Item property of the gallery.
SortByColumns(Database, "Created", If(SortDescending1, SortOrder.Ascending, SortOrder.Descending))
Is there any workaround for this?