How to do a search function?

I want to make a simple app with a search function.
At the end, I want to type into the search form for example two words and send the request to a REST API (PHP backend). The API should search in a database for the given two words and send back a JSON list of some results, that fit with the two words (e.g. word is in the title or description). The app should have the function to sort the results.

Do you have any hints for me, how to send a the request and let ionic sort the json result list?