Change from search_query(SearchTerms, SortOrder, FilterExpression) to search_query(SearchTerms, FilterExpression, SortOrder) to use the correct parameter order search_query(string searchText, string filterBy, string sortOrder)
Within search_query, use the parameters instead of global variables
Describe your changes