Hi there,
I'm new to Powerapps (and have no programming background) and I'm building an app for work where we set permissions for employees. The employee name is selected from a dropdown box that does not allow user input.

The 1st screen of the app is a browse screen where I have a textbox to search for employee names to open their permission screen to view or edit as necessary.

What I would like to do (and haven't been able to all week) is:
1st - Sort the gallery by columns from the dropdown values where I choose the employess when registering them, so I can use the ascending/descending button at the top of the browse screen.
2nd - Use the textbox on the browse screen to search and filter the gallery by the name of the employee.
Any help is appreciated, as this has been giving me headaches for the past week.
Thanks,
Miguel
EDIT: I managed to find out how to do both in a single formula after much trial and error:
Sort(Filter(AIRC;StartsWith(Nomes.Value; TextInput1.Text)); Nomes.Value; Ascending)
New question:
Is there anyway to make it so the text I input is searched anywhere in the line, not just in the beginning? For example, searching for a surname and getting all employees with that surname, no matter where in the full name it is?