There is nothing in the OnVisible property of the Edit Screen.
In the Items property of the Gallery I have a version of this:
If(IsBlank(TextInput5), SortByColumns(colMileageLog, "Date", If(SortDescending1, Ascending, Descending)),
SortByColumns(Filter(colMileageLog, StartsWith(BusinessPurpose, TextInput5.Text)
Or BusinessPurpose = TextInput5.Text
Or BusinessPurpose in TextInput5.Text
Or Date = Value(TextInput5.Text)),
"Date", If(SortDescending1, Ascending, Descending)))
The app works with collections that can be synced to sharepoint if wifi connection is established.